easy question: how to redirect stdout and stderr in sh?

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Sep 23 15:23:33 AEST 1990


In article <752 at inesc.UUCP> jmc at inesc.UUCP (Miguel Casteleiro) writes:
>The subject says it all!  I want to redirect to a file in shell
>(/bin/sh) the stdout and stderr of a process.

command > stdout.capture 2> stderr.capture	# separate files

command > stdout.and.stderr.capture 2>&1	# shared file

Note that you should have been able to find this in any decent
UNIX user tutorial guide.



More information about the Comp.unix.questions mailing list