using tee program with tar output
Max Heffler
max at compaq.com
Sat May 11 13:19:24 AEST 1991
sean at dmr.asa.com (Sean Baker) writes:
>I can do this fine in the csh by using:
> tar cvf tarfile /tmp |& tee tar.out
>But how do I do this with the Bourne shell? I can't seem to
>get both stdin and stdout sent to the tee program?
tar cvf tarfile /tmp 2>&1 | tee tar.out
--
Max Heffler, Senior Software Engineer internet: max at compaq.com
Compaq Computer Corporation uucp: ..!uunet!max at compaq.com
P.O. Box 692000 - M050701 phone: (713) 378-8366
Houston, Texas 77269-2000 fax: (713) 374-7305
More information about the Comp.unix.questions
mailing list