Apr 12, 2004 #2 johngiggs Technical User Oct 30, 2002 492 US ozi403, I'm not sure what you are looking for, but if you wanted to output your errors and your output to log files you could use something like this: test_script.sh 2> test_script.errors 1> test_script.log If you want to append to the files so that you have historical logs, touch the files first and then type: test_script.sh 2>> test_script.errors 1>> test_script.log Hope this helps. John Upvote 0 Downvote
ozi403, I'm not sure what you are looking for, but if you wanted to output your errors and your output to log files you could use something like this: test_script.sh 2> test_script.errors 1> test_script.log If you want to append to the files so that you have historical logs, touch the files first and then type: test_script.sh 2>> test_script.errors 1>> test_script.log Hope this helps. John
Apr 13, 2004 #3 PHV MIS Nov 8, 2002 53,708 FR If it's for debug purpose, you may consider set -x also. Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
If it's for debug purpose, you may consider set -x also. Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
Apr 13, 2004 #4 pete91z Technical User Oct 18, 2002 146 GB In addition to the above if you want STDOUT and STDERR to log to the same file you can do test_script.sh > test.log 2>&1 Upvote 0 Downvote
In addition to the above if you want STDOUT and STDERR to log to the same file you can do test_script.sh > test.log 2>&1