Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wotan!twisto!isis!max From: max@compaq.com (Max Heffler) Newsgroups: comp.unix.questions Subject: Re: using tee program with tar output Message-ID: Date: 11 May 91 03:19:24 GMT References: <26840@adm.brl.mil> Sender: news@twisto.compaq.com Lines: 16 sean@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@compaq.com Compaq Computer Corporation uucp: ..!uunet!max@compaq.com P.O. Box 692000 - M050701 phone: (713) 378-8366 Houston, Texas 77269-2000 fax: (713) 374-7305