Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec > /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
- ls
- exec > tee /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
- ls
- # creates a file called 'tee' with output, nothing in terminal
- exec | tee /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
- ls
- # creates file uninst_total_20150729.161010.txt but is empty, terminal is ok
- exec 1> >(tee -a $LOGFILE)
- exec 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement