help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] How to create a real copy of file descriptors stdout / s


From: João Eiras
Subject: Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?
Date: Mon, 27 Feb 2017 13:30:13 +0100

Why not just...

$ unbuffer apt-get "$@" > 1> >(tee -a ) 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 ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]