a.out 1> file.out 2> file.err in csh?

Paul Lew lew at gsg.UUCP
Thu Oct 27 03:27:12 AEST 1988


how about:

	$ ( a.out > file.out ) >& file.err

Since csh |& and >& will put stdout and stderr together, the stdout from
subshell ( a.out > file.out ) will be empty and stderr will be redirected
to file.err.
-- 
Paul Lew			{oliveb,harvard,decvax}!gsg!lew	(UUCP)
General Systems Group, 5 Manor Parkway, Salem, NH 03079	(603) 893-1000



More information about the Comp.unix.wizards mailing list