Bob Tanner <tanner at real-time.com>  wrote:
> Being an old tcsh user, I use to be able to do this:
> 
> command |& tee output
> 
> stdout and stderr get piped to tee
> 
> I tried this under bash.
> 
> command | tee output 2>&1
> 
> No go. How do you pipe stderr in bash?

You've always had problems with that, Bob.

	command 2>&1 | tee output

Right idea, wrong place. tee doesn't read output from stderr.  You need
to combine stderr and stdout before you tee it.
-- 
Chad Walstrom <chewie at wookimus.net>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr