How does one redirect just stderr under the C Shell?

Wayne Little rwl at franklin.ee.umr.edu
Thu May 9 00:37:06 AEST 1991


From: rwl at ee.umr.edu (Wayne Little)
Newsgroups: comp.sys.unix.wizards
Subject: How to redirect just stderr under the C Shell?
References: 
Sender: 
Reply-To: rwl at ee.umr.edu (Wayne Little)
Followup-To: 
Distribution: world
Organization: University of Missouri - Rolla
Keywords: "C shell",csh, stderr, redirect

Under the C shell, I know I can redirect both stdout & stderr with
the ">&" combination;

e.g. make >& make.log

will put both the stdout and stderr ouputs in make.log.

*BUT* after all these years I still can't figure out how to redirect
*just* stderr independently of stdout under the C Shell.

Under the Bourne shell, one can just do "N>" where N is the number
of the file descriptor you want to redirect, so "2>" will redirect stderr.
e.g.  make > make.stdout 2> make.stderr

would separate the stdout from the stderr in 2 different files as indicated.

I'm at a loss under the C Shell.

Can some wizard please come to my rescue and solve this 10-year mystery
for me???

Thanks in advance,
-- 
Wayne Little  rwl at ee.umr.edu; Univ. of Missouri-Rolla EE Dept.; (314) 341-4546  
"I have read in Plato and Cicero sayings that are very wise and very beautiful;
 but I never read in either of them: "Come unto me all ye that labour and are
 heavy laden."                                                   St. Augustine



More information about the Comp.unix.wizards mailing list