using tee program with tar output

Chip Yamasaki chip at osh3.OSHA.GOV
Sat May 11 13:56:02 AEST 1991


In <26840 at adm.brl.mil> sean at dmr.asa.com (Sean Baker) writes:

>	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
-- 
--
Charles "Chip" Yamasaki
chip at oshcomm.osha.gov



More information about the Comp.unix.questions mailing list