GNU bug report logs - #8408
A possible tee bug?

Previous Next

Package: coreutils;

Reported by: George Goffe <goffe <at> google.com>

Date: Fri, 1 Apr 2011 20:41:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 8408 <at> debbugs.gnu.org (full text, mbox):

From: George Goffe <goffe <at> google.com>
To: Alan Curry <pacman-cu <at> kosh.dhis.org>
Cc: 8408 <at> debbugs.gnu.org
Subject: Re: bug#8408: A possible tee bug?
Date: Fri, 1 Apr 2011 15:53:01 -0700
[Message part 1 (text/plain, inline)]
Alan,

Thank you for your help.

Sorry to bother you with such a trivial "problem". I'm still learning "unix"
after all these years. Sigh.

Have a GREAT weekend and, again, Thanks.

George...

On Fri, Apr 1, 2011 at 3:41 PM, Alan Curry <pacman-cu <at> kosh.dhis.org> wrote:

> George Goffe writes:
> > Alan,
> >
> > Oops. I goofed... My apologies.
> >
> > The example would be this "somescript | tee somescript.log 2>&1".
> >
> > The intent is to capture all the output (stdout and stderr) from
> > "somescript". "somescript" runs several commands that may or may not
> utilize
> > other FDs. I was hoping to get a better output than what you might get
> from
> > the script command which records all the messages + a ton of other things
> > like escapes which are a pain to eliminate.
> >
> > Does this make better sense?
>
> Well, you still have the 2>&1 in the wrong place. If you want it to affect
> the stderr of the command to the left of the pipe, you have to put it to
> the
> left of the pipe.
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 14 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.