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: Greg Wooledge
Subject: Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?
Date: Mon, 27 Feb 2017 15:16:15 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Feb 27, 2017 at 07:57:00PM +0000, Patrick Schleizer wrote:
> Patrick Schleizer:
> > unbuffer apt-get "$@" 1> >(tee -a "$logfile") 2> >(tee -a "$logfile" >&2)
> 
> Could we even use
> &>
> ?

In a previous email, he said it was *noninteractive*.  So why not just
do:

unbuffer apt-get blah 2>&1 | tee -a logfile

Since both stdout and stderr are going to the same logfile, keep it
simple.

I don't even know whether apt-get needs unbuffer in the first place.
You could try leaving it out.




reply via email to

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