Capturing build output

Dagmar d'Surreal dagmar at speakeasy.net
Mon Oct 21 10:51:46 PDT 2002


On 21 Oct 2002, Ken Dyke wrote:

> On Sun, 2002-10-20 at 18:06, WhyteWolf wrote:
> > ... how do you
> > > capture the screen output from the install processes. I  tried piping
> > > it to a file, but some information is missing.
> > >
> > <command> &> <output file>
>
> This simple redirect does not capture all output.
>
> <command> 3>&1 1>&2 2>&3 <output.file>
>
> or to see what is going on
>
> <command> 3>&1 1>&2 2>&3 | tee <output.file>
>
> This will give normal screen output while feeding everything into the
> output.file.

OKay.  That's _extreme_.  What's wrong with just using 2>&1?  STDERR into
STDOUT should make it easy enough for everything to handle, including (and
especially) tee.

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list