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: Patrick Schleizer
Subject: Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?
Date: Mon, 27 Feb 2017 17:32:00 +0000

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?



reply via email to

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