Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site adobe.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!glacier!adobe!greid From: greid@adobe.UUCP (Glenn Reid) Newsgroups: net.unix Subject: Re: I/O Redirection with the C Shell Message-ID: <906@adobe.UUCP> Date: Mon, 2-Dec-85 16:54:54 EST Article-I.D.: adobe.906 Posted: Mon Dec 2 16:54:54 1985 Date-Received: Thu, 5-Dec-85 07:43:57 EST References: <306@unitek.UUCP> Reply-To: greid@adobe.UUCP (Glenn Reid) Distribution: net Organization: Adobe Systems, Palo Alto Lines: 23 Summary: Here is a technique that will work. The premise is that you *cannot* redirect the two channels to two different places with the c-shell. The solution is to use a subshell from the c-shell. > example for sh(1): > nroff -ms document > doc 2> index A hack that will work with csh(1): (nroff -ms document > doc) >& index The parentheses create a subshell which will run nroff. The standard output from the nroff program will be redirected into the file "doc". Anything written to the standard error channel will be visible the standard error channel of the subshell (in parens), which can then be redirected into index. Glenn Reid ..decwrl!adobe!greid -- Skipping unavailable article...