I'm a novice. The server I'm dealing with is WinNT using Xitami (no, I don't have a choice about this). I have a perl script running when a form is submitted which includes a file upload function from the user. Since the files can be very large, the perl script can be open & in use for several minutes. I have to wait until the file is finished uploading in order to finish manipulating the data and return feedback to the user before closing the script. It works fine for one user, but not if a second submits before the first one is completed. I have seen a lot of mention about 'forking' but understand it won't work in the Windows environment. Is there a simple solution to this that works with Windows? Two related questions: can I run a Perl script when an HTML page opens (such as onLoad). Similarly can I run a Perl script when a page closes? if so, any info on how would be appreciated. Thank you.

In reply to CGI form processing - multiple 'calls' by waris

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.