Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!romp!auschs!d75!panda!eli From: eli@panda.uucp (Eli Taub/100000) Newsgroups: comp.unix.questions Subject: Re: csh question Summary: (prog > out) >& err Message-ID: <3233@d75.UUCP> Date: 2 Jul 90 16:00:25 GMT References: <13132@ulysses.att.com> <59@siva.UUCP> <7267@large.cray.com> Sender: news@d75.UUCP Reply-To: eli@reed.UUCP (Eli Taub/100000) Organization: IBM AWD, Austin, TX Lines: 14 In article <7267@large.cray.com> tbc@large.cray.com (Tom Craig) writes: >I have a csh question. Is it possible to redirect stdout and stderr to >different files in the c shell, (like 1>out 2>err in the bourne shell)? >I can't figure out how, and no one has been able to enlighten me. Try this: (prog > out) >& err A special case of the above is: (prog > /dev/tty) >& /dev/null that will filter out all stderr. _ |___ Eli Taub | | \ | (512) 838-4810 | /\/ Contractor at (AWD) IBM | I express my apinions not IBM's. / | \