Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!rutgers!mcnc!uvaarpa!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: easy question: how to redirect stdout and stderr in sh? Keywords: redirection sh Message-ID: <13926@smoke.BRL.MIL> Date: 23 Sep 90 05:23:33 GMT References: <752@inesc.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 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.