Subject: Re: Redirecting error output
From: Arthur Corliss (arthur@corlissfamily.org)
Date: Thu May 09 2002 - 18:58:42 AKDT
> I tried a command to redirect output to a file but it is empty. The
> command was like:
>
> command > outputfile
>
> I think no output is going to output file because they are errors...
>
> Any way to redirect the STDERR to a file?
Your method above only captures STDOUT. To get STDERR, do:
command 2> outputfile
If you want to capture both STDOUT & STDERR in the same file, do:
command 1> outputfile 2>&1
----Arthur Corliss Bolverk's Lair -- http://arthur.corlissfamily.org/ Digital Mages -- http://www.digitalmages.com/ "Live Free or Die, the Only Way to Live" -- NH State Motto
--------- 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 - 12:52:24 AKDT