|Perl: the Markov chain saw|
IPC::Open3 woesby BazB (Priest)
|on Mar 10, 2002 at 19:18 UTC||Need Help??|
BazB has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to write a wrapper for some external programs that I'll be calling from a Perl script.
After looking through The Camel and around the Monastery, I found IPC::Open3.
I've already looked at the following nodes, but I'm still unable to get a script that performs as I expect:
For testing purposes I'm just using a simple Perl script as the command to be run by open3(), rather than using the binary. I've also tried using cat as well.
The main script (using IPC::Open3) is:
I'm expecting this script to write the output from my test.pl script to output.log and errors from the test script to error.log, however both files are created, but empty.
Have I got the wrong end of the stick somewhere?