[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 18:32:00 CET 2017


João Eiras:
> On 27 February 2017 at 15:03, Patrick Schleizer
>> 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.
> 
> Then you can redirect stderr to stdout
> $ unbuffer apt-get "$@" 1> >(tee ...) 2>&1
> 
> Or do you want to keep the file descriptors separate ? I've done that
> but it's more tricky.
> 

It's alright in this case.

Is unbuffer / script unavoidable?


More information about the Whonix-devel mailing list