Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. exec > /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
  2. ls
  3.  
  4. exec > tee /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
  5. ls
  6. # creates a file called 'tee' with output, nothing in terminal
  7.  
  8. exec | tee /vga/log/uninst_total_$(date +'%Y%m%d.%H%M%S').txt
  9. ls
  10. # creates file uninst_total_20150729.161010.txt but is empty, terminal is ok
  11.  
  12. exec 1> >(tee -a $LOGFILE)
  13.  
  14. exec 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement