[Whonix-devel] [Help-bash] How to create a real copy of file descriptors stdout / stderr?
    Patrick Schleizer 
    patrick-mailinglists at whonix.org
       
    Mon Feb 27 15:03:00 CET 2017
    
    
  
João Eiras:
> Why not just...
> 
> $ unbuffer apt-get "$@" > 1> >(tee -a ) 2> >(tee -a "$logfile" >&2)
Generally good idea. Did not work for me, but the following does...
unbuffer apt-get "$@" 1> >(tee -a "$logfile") 2> >(tee -a "$logfile" >&2)
> however, you should be careful having two tee instances writting to
> the same file. Surely you want separate log files for each file
> descriptor ?
> 
In this case I like to have stdout and stderr in the same log file so
it's looking the same as if manually run.
    
    
More information about the Whonix-devel
mailing list