Xref: utzoo comp.sources.wanted:9477 alt.sources.wanted:39 Path: utzoo!attcan!uunet!cs.utexas.edu!rice!uw-beaver!sumax!amc-gw!pilchuck!ssc!fylz!fyl From: fyl@fylz.UUCP (Phil Hughes) Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: separate redirection of stderr and stdout in csh. Summary: you can't but here is how to do it Message-ID: <690@fylz.UUCP> Date: 18 Nov 89 17:58:52 GMT References: <13928@teraida.UUCP> Organization: FYL, Seattle, WA Lines: 27 In article <13928@teraida.UUCP>, jeffy@teraida.UUCP (Jeffrey Youngstrom) writes: > Hiya, > In the bourne shell I can do this: > > #!/bin/sh > > dumb_command 1> good_stuff 2> errors > > How the heck do you do this for csh?!!! I hate to give away one of the "tricks" from the Unix for Programmers class that I teach but someone else will tell you anyway so here it is: First, you can't. csh doesn't allow it. But, being a creative person you can always do what you want with UNIX. So, try: (dumb_command >good_stuff) >& errors It works because standard out from the command is redirected to good_stuff within the subshell. Then, everything (that is left) is redirected to errors. -- Phil Hughes - FYL - 8315 Lk City Wy NE - Suite 207 - Seattle, WA 98115 (206)526-2919 or LAMB-919 for the strange {amc-gw,uunet!pilchuck}!ssc!fylz!fyl