[H-GEN] stderr
Martin Pool
martin.pool at mincom.com
Tue Mar 16 03:14:15 EST 1999
(Note reply-to: being general at humbug.org.au vs Martin Pool <martin.pool at mincom.com>)
Paul Gearon wrote:
>
> (Note reply-to: being general at humbug.org.au vs Paul Gearon <pag at tams.com.au>)
>
> > Does anyone know how to redirect stderr so I can save the output of a
> > process?
> >
> > ie I need to do a
> >
> > executable > test.log
> >
> > except for stderr instead of stdout.
>
> executable 2> test.log
>
> Or if you want stderr to go along with stdout:
> executable > test.log 2>&1
This works under bash and sh. For other shells, RTFM.
--
/\\\ Mincom | Martin Pool | martin.pool at mincom.com
// \\\ | Software Engineer | Phone: +61 7 3303-3333
\\ /// | Mincom Pty. Ltd. |
\/// | Teneriffe, Brisbane | Speaking for myself only
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list