Path: utzoo!utgpu!watmath!att!rutgers!ucsd!swrinde!cs.utexas.edu!mailrus!iuvax!purdue!haven!udel!udccvax1!pricked From: pricked@vax1.acs.udel.EDU (Jenn-Ming Yang) Newsgroups: comp.sources.wanted Subject: Re: separate redirection of stderr and stdout in csh. Message-ID: <5045@udccvax1.acs.udel.EDU> Date: 17 Nov 89 04:02:50 GMT References: <13928@teraida.UUCP> Reply-To: pricked@vax1.acs.udel.EDU (Jenn-Ming Yang) Organization: University of Delaware Lines: 30 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 > to send the output of my command to good_stuff, and > any error messages to a file called errors. > How the heck do you do this for csh?!!! This works on BSD 4.3: (a.out > stout) >& sterr sterr will contain only stuff written to stderr, stout will only contain stuff written to stdout. (provided to don't screw around with closing and opening stderr and stdout in certain ways). This also works: (a.out > xyz) |& tee abc -- Send e-mail to: pricked@vax1.acs.udel.edu (or pricked@192.5.57.1, pricked@192.5.57.129) !!!!!!!!!!!!!!!!!!!!!!!!There is no substitute!!!!!!!!!!!!!!!!!!!!!!!!! !!played lums pond? why not? are you weak or do you just have brains?!!