[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Redirecting stdout and stderr into a file



On Wednesday 10 November 2004 18:03, Rob Sims wrote:
> > Blake Swadling <blake@swadling.com> wrote:
> > > > but how can I redirect both together?
> command > logfile 2>&1

man bash has a chapter for redirection (starting at line 1426!)
For example, it reports the following commands:
ls > logfile 2>&1
will redirect both sdtout and stderr, while
ls 2>&1 > logfile
will only redirect stdout to logfile...

Gregor



Reply to: