Trying to get SYSTEM2 module to work on Windows using Activestate Perl 5.8 or 5.10. Here is a quick test script that works on Unix, but not Windows (this is the windows version):
use System2; my ($out,$err) = system2("cmd", "/C", "dir"); print "OUT: $out ERR: $err";
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?

In reply to Using SYSTEM2 on Windows by rthawkcom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.