rthawkcom has asked for the wisdom of the Perl Monks concerning the following question:
There are 3 of us working on this problem and no one can figure out why it won't work. Something to do with the pseudo-threading? I've poked all around System2.pm and haven't a clue. Best I can tell is data is not coming back through the pipe. Another person thinks it has something to do with the child PID returning a negative value (which means its a pseudo-thread). 5.10 seems to crash when it opens STDERR. 5.8 will hang. Suggestions anyone?use System2; my ($out,$err) = system2("cmd", "/C", "dir"); print "OUT: $out ERR: $err";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using SYSTEM2 on Windows
by ikegami (Patriarch) on May 15, 2009 at 20:54 UTC | |
|
Re: Using SYSTEM2 on Windows
by Anonymous Monk on May 16, 2009 at 13:14 UTC | |
by Marshall (Canon) on May 16, 2009 at 16:31 UTC | |
by rthawkcom (Novice) on May 27, 2009 at 20:14 UTC | |
by ikegami (Patriarch) on May 27, 2009 at 20:38 UTC | |
by rthawkcom (Novice) on May 27, 2009 at 20:55 UTC |