Re: Redirecting error output


Subject: Re: Redirecting error output
From: James Zuelow (jamesz@ideafamilies.org)
Date: Fri May 10 2002 - 10:20:25 AKDT


----- Original Message -----
From: "Mike Barsalou" <mbarsalou@aidea.org>
To: <aklug@aklug.org>
Sent: Friday, May 10, 2002 10:15 AM
Subject: Redirecting error output

> command > outputfile
>
> I think no output is going to output file because they are errors...
>
> Any way to redirect the STDERR to a file?
>
> Mike

try

command > outputfile 2> errorfile

you will capture normal output to outputfile and errors to errorfile.

This is described in the bash man pages, but that's a lot to wade
through. I suggest the Advanced Bash Scripting Guide from www.tldp.org.

Cheers,

James

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Fri May 10 2002 - 10:20:51 AKDT