Yes, I can download the tar.gzipped modules from CPAN and install them manually, but looking at the possibly relevant modules in the FAQ (Proc::Background, Win32::Process etc.) I saw that each of them has non-trivial dependencies.

Anyway, your suggestion works (except that I needed kill 9 instead of kill 2). You are right that there are complications, for example you were right about the VM, there is one involved in the problem :), but for this specific case, it looks like that your solution will be adequate.

Thanks!

PS. I propose that this method (system 1, "program_name") be added to the relevant entry in perlfaq8, because it's simple and useful. A similar hack for Unix-like systems is already present there.


In reply to Re^2: starting a process in the background, with a twist by Anonymous Monk
in thread starting a process in the background, with a twist by Anonymous Monk

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.