Welcome to the Monastery | |
PerlMonks |
Capturing both STDOUT, STDERR and exit statusby pbeckingham (Parson) |
on May 06, 2005 at 16:04 UTC ( [id://454715]=perlquestion: print w/replies, xml ) | Need Help?? |
pbeckingham has asked for the wisdom of the Perl Monks concerning the following question: I would like to run an external command, and capture the STDOUT, STDERR and the exit status of that command. This will run on *nix, so for example, I can do this: This will give me the exit status, and allow me to slurp the output. But I am wondering if anyone knows a way for me to do both at the same time. If only IPC::Open3 gave me a way to capture the exit status. pbeckingham - typist, perishable vertebrate.
Back to
Seekers of Perl Wisdom
|
|