LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Redirecting debug info to another file (https://www.linuxquestions.org/questions/programming-9/redirecting-debug-info-to-another-file-263478/)

subu_s 12-06-2004 11:12 PM

Redirecting debug info to another file
 
Hi,
Is it possible in shell scripts to redirect only the debug info to another file?

i.e. If I run the script as sh -v or sh -x or if I selectively turn it on inside a script, by set -x, -v the o/p shld automatically go to another file. The basic output should still come on to the screen (all the echo's).

Regards,
Subu

walker 12-07-2004 01:15 PM

Did you try the easiest way???
using "2>" to redirect the standard error to whatever you want??
cheers
walker


All times are GMT -5. The time now is 12:04 AM.