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?

 
-- 
Bob Tanner <tanner at real-time.com>         | Phone : (952)943-8700
http://www.mn-linux.org, Minnesota, Linux | Fax   : (952)943-8500
http://www.linuxjustworks.com             | Linux Just Works!         
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288