I do appreciate that you were trying to help... Unfortunately, the above would not work. Just for the notes - quote from the Camel Book (3rd edition, p. 811) - "The system function works exactly like exec, except that system does a fork first and then, after the exec, waits for the executed program to complete." That's exactly what prevents me from envoking an external program using exec or system - I need my CGI program to completely finish and exit BEFORE the child process finishes.

There's a similar post "Understanding fork" by neiwatson. I'll try some of the suggestions offered there, even though I'm not sure to what extent they are applicable to Windows systems. I was just wondering if anyone had experience forking on Windows systems from a CGI program (it's important for it to be a CGI program, i.e. run on a web server)


In reply to Re: Re: Re: Re: Forking in a CGI program on Windows systems by relax99
in thread Forking in a CGI program on Windows systems by relax99

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.