How do I direct the messages destined for STDERR and redirect them to 
STDOUT?



I have a perl script A that calls another program B.  If there is bad input, 
Program B dumps out a lot of error messages through STDERR.  I want to be 
able to stop my perl script when it detects messages coming from program B.  
What is the best way to do that?  One way I thought of is by redirecting 
error messages to STDOUT and capture it in my perl program and TERMINATE the 
perl program if it detects anything.  (when program B runs normally, there 
is no output)
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to