[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 21:41:00 +0000 |
Greg Wooledge:
> 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.
Simpler and works for me.
> I don't even know whether apt-get needs unbuffer in the first place.
> You could try leaving it out.
Without unbuffer, colors and progress information are lost from console
output, which I wanted to prevent.
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, (continued)
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, João Eiras, 2017/02/27
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Patrick Schleizer, 2017/02/27
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, João Eiras, 2017/02/27
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Patrick Schleizer, 2017/02/27
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, João Eiras, 2017/02/27
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Patrick Schleizer, 2017/02/28
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Branden Robinson, 2017/02/28
- Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Greg Wooledge, 2017/02/28
Message not available
Re: [Help-bash] How to create a real copy of file descriptors stdout / stderr?, Greg Wooledge, 2017/02/27