Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!umriscc!franklin.ee.umr.edu From: rwl@franklin.ee.umr.edu (Wayne Little) Newsgroups: comp.unix.wizards Subject: How does one redirect just stderr under the C Shell? Message-ID: <2740@umriscc.isc.umr.edu> Date: 8 May 91 14:37:06 GMT Sender: news@umriscc.isc.umr.edu Reply-To: rwl@ee.umr.edu (Wayne Little) Organization: University of Missouri - Rolla Lines: 38 Originator: rwl@ee.umr.edu From: rwl@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@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@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