csh question

Kevin C. Wonus wonus at virtech.uucp
Tue Jul 10 01:00:46 AEST 1990


In article <7267 at large.cray.com> tbc at 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



More information about the Comp.unix.questions mailing list