jmc@inesc.UUCP (Miguel Casteleiro) (09/23/90)
The subject says it all! I want to redirect to a file in shell (/bin/sh) the stdout and stderr of a process. So, how do I do it? Thanks! P.S.: Please disregard the previous article. -- __ Miguel Casteleiro at __ /// INESC, Lisboa, Portugal. "News: so many articles, \\\/// Only UUCP: ...!mcsun!inesc!jmc so little time..." \XX/ Amiga
gwyn@smoke.BRL.MIL (Doug Gwyn) (09/23/90)
In article <752@inesc.UUCP> jmc@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.