Thanks for the feedback.

In the is_joinable check I had attempted to try both join and detach, but in both cases it causes the script to crash perl. If I run it as is I see:

Perl exited with active threads: 0 running and unjoined 1 finished and unjoined 0 running and detached
At the end of the run, which is what you had mentioned. I would love to join it but I just don't know why it keeps crashing my perl(Activestate 5.8.8 32 bit on Windows)

I want to be able to access the information in @results, after the _timedCommand has returned. When running the diskpart system call, a few lines of information are printed prior to the point where it asks for user input, it is these lines I would like to get back. I will try the queue and see if that does what I need it to do.

Thanks.

I updated my code to reflect more where I am currently at.


In reply to Re^4: How to deal with a forked proces that is waiting for user input? by gepapa
in thread How to deal with a forked proces that is waiting for user input? by gepapa

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.