Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Redirecting stderr in csh Message-ID: <9548@mimsy.UUCP> Date: Thu, 26-Nov-87 19:57:31 EST Article-I.D.: mimsy.9548 Posted: Thu Nov 26 19:57:31 1987 Date-Received: Sun, 29-Nov-87 17:55:41 EST References: <1254@saturn.ucsc.edu> <209@unicom.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 20 >In article <1254@saturn.ucsc.edu> koreth@ssyx.ucsc.edu (Steven Grimm) writes: >>How do you redirect stderr without redirecting stdout in csh? In sh, you >>can use "2> filename", but there doesn't seem to be a csh equivalent. (To which the answer is `you cannot; there is none'.) In article <209@unicom.UUCP> dv@unicom.UUCP (David W. Vezie) writes: >You can use the "subshell" feature of csh, and do: >(cmd > /dev/tty) >& filename This *sometimes* does what is desired. But there is no way to do in csh the following (without using temp files, which might overflow): >Perrors; >ierrors; >perrors; >eerrors while loop; do P 2>>Perrors | i 2>>ierrors | p 2>>perrors | e 2>>eerrors done | filter -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris