[ale] re: standard error to a file
gamyers at atlml1.atlprom.att.com
gamyers at atlml1.atlprom.att.com
Wed Sep 11 11:59:29 EDT 1996
If you always want the standard out to go to the same file, add the
following to the top of the script:
exec 2>stderr_file_name
Geoffrey Myers - gamyers at attmail.com
------------- Begin Forwarded Message -------------
From: attmail!internet!cc.gatech.edu!ale-owner (Bob's Bulk mail)
Date: Tue Sep 10 17:18:12 -0400 1996
Subject: Re: [ale] Bash Shell Scripting
To: attmail!internet!cc.gatech.edu!ale
To: attmail!internet!itserve.com!dhamm
Content-Type: text
Content-Length: 726
> From transam at cavu.com Tue Sep 10 17:12:00 1996
> From: David Hamm <dhamm at itserve.com>
> To: "'ALE'" <ale at cc.gatech.edu>
> Subject: [ale] Bash Shell Scripting
> Date: Tue, 10 Sep 1996 15:30:29 -0400
> I've seen somewhere that you could redirect the output from _stderr_ of a
> program to a file,
> ...
program 2> stderr_file
also
program > stdout_file 2> stderr_file
Btw, csh types can do the following (assuming stdout is the terminal)
(program > /dev/tty ) >& stderr_file
or
(program > stdout_file ) >& stderr_file
Bob Toxen
bob at cavu.com
transam at cavu.com [ALE]
http://www.mindspring.com/~cavu
Fly-By-Day Consulting, Inc.
"Venimus, Vidimus, Dolavimus" (We came, we saw, we hacked)
More information about the Ale
mailing list