|
|
| go ahead... be a heretic | |
| PerlMonks |
Easy way to capture STDOUT and STDERR without IPCby rastoboy (Monk) |
| on Apr 20, 2011 at 16:26 UTC ( #900379=perlquestion: print w/ replies, xml ) | Need Help?? |
|
rastoboy has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings Brothers!
I'm wondering if there is an easy way to execute a shell command and simply capture all of STDERR and STDOUT into a string, potentially without using IPC. I don't need to interact with the process at all, and I find using IPC to be quite awkward/challenging for me. My intuition tells me that there ought to be a simple way to do this, but my knowledge is failing me. Any input would be greatly appreciated! Update: Sorry, I meant to say that I wanted to capture STDOUT and STDERR into two separate strings.
Back to
Seekers of Perl Wisdom
|
|