On Sat, Jan 22, 2005 at 12:30:33PM -0800, Craig H. Block wrote:
> I remember on SCO Unix there was a way to copy stdout to a file without
> affecting output to the screen.  Is there a way to do that with Linux?
> (not ">some_file 2>&1" which diverts instead of copies).

cmd 2>&1 | tee (filename)
should work...

> 
> Thanks,
> 
>    - Craig
> 
> 
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.rlug.org/mailman/listinfo/rlug

_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to