[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8408: A possible tee bug?

From: Alan Curry
Subject: bug#8408: A possible tee bug?
Date: Fri, 1 Apr 2011 17:41:11 -0500 (GMT+5)

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.

reply via email to

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