Path: utzoo!attcan!uunet!virtech!wonus From: wonus@virtech.uucp (Kevin C. Wonus) Newsgroups: comp.unix.questions Subject: Re: csh question Summary: stdout & stderr Message-ID: <1990Jul09.150046.4238@virtech.uucp> Date: 9 Jul 90 15:00:46 GMT References: <13132@ulysses.att.com> <59@siva.UUCP> <7267@large.cray.com> Reply-To: wonus@virtech.UUCP (Kevin C. Wonus) Distribution: comp.unix.questions Organization: Virtual Technologies Inc., Sterling VA Lines: 14 In article <7267@large.cray.com> tbc@large.cray.com (Tom Craig) writes: >I have a csh question. Is it possible to redirect stdout and stderr to >different files in the c shell, (like 1>out 2>err in the bourne shell)? Yes: (program_name > output) >& error '>&' operator redirects stdout and stderr. Therefore, stdout must be redirected first and is enclosed in () for that reason. After stdout is redirected, the '>&' operator redirects only stderr. Kevin C. Wonus Virtual Technologies Inc. Sterling, Virginia