[lug] STDERR, STDOUT redirect...

Eric A Kihn Eric.A.Kihn at noaa.gov
Wed Mar 14 19:34:15 MST 2001


Hello,

Can anyone clue me in to the correct syntax when I want to direct the 
results of a program to seperate files.  That is I want to have my 
process_j4.sh do

AACGM_DAT_PREFIX=/home/ekihn/j4/dat/aacgm_coeffs
export AACGM_DAT_PREFIX
LD_LIBRARY_PATH=/home/ekihn/j4/bin
export LD_LIBRARY_PATH
/home/ekihn/j4/scripts/process_j4.pl 1>& /dev/null 2>>& /tmp/j4.error

Where the STDOUT gets dumped but errors go to a log.  The syntax above 
is one of the permutations I've tried.  

Many thanks,





More information about the LUG mailing list