using tee program with tar output
    Ray Wallace 
    wallace at ynotme.enet.dec.com
       
    Sat May 11 01:32:15 AEST 1991
    
    
  
In article <26840 at adm.brl.mil>, sean at dmr.asa.com (Sean Baker) writes...
>I'm trying to redirect the output of tar to a file.
> 
>I can do this fine in the csh by using:
> 
>	tar cvf tarfile /tmp |& tee tar.out
First, in csh can't this be done without tee? Like this -
	tar cvf tarfile /tmp >& 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?
In sh it is -
	tar cvf tarfile /tmp > tar.out 2>&1
Either that or (being fairly new to Unix) I missunderstood the question.
---
Ray Wallace		
		(INTERNET,UUCP) wallace at oldtmr.enet.dec.com
		(UUCP)		...!decwrl!oldtmr.enet!wallace
		(INTERNET)	wallace%oldtmr.enet at decwrl.dec.com
---
    
    
More information about the Comp.unix.questions
mailing list