STDOUT & STDERR 
Author Message
 STDOUT & STDERR

Another beginners question. Whats the idiom in perl for starting
a sub process with a filehandle, and getting both the STDOUT and
the STDERR of that process for subsequent parsing ??

I suppose what I have in mind is something like :-

open (CHILD, "child_process 2>&1 |"); # I don't think this works!
while (<CHILD>)
{
   do_something_with_child_here;

Quote:
}

that is, to be able to read the child's STDOUT, and STDERR in order
to see when something horrid has happened to child_process.




Sat, 04 Mar 1995 06:48:32 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. STDOUT & STDERR from a dumped perl script

2. redirect STDOUT & STDERR to Text

3. Newbie: How to direct STDOUT & STDERR to file AND terminal

4. Redirecting STDERR & STDOUT

5. STDERR>&STDOUT

6. STDOUT && mod_perl

7. eval and trapping stdout/stderr

8. Capturing STDOUT and STDERR and preserving order?

9. STDOUT and STDERR to the same file

10. reading stdout/stderr using pipes

11. Saving STDERR and STDOUT in an array

12. seprating STDERR and STDOUT in Net::Telnet

 

 
Powered by phpBB® Forum Software