1. I think its generally the browser that controls the timeout. You can keep it running by continuing to pass data to it (print some characters occasionally. possibly in a comment) the server can deal with it, but unless its all the server does it's probably not a great idea increasing the timeout. if you do it'll affect all the other pages as well.
  2. have the cgi-script act as a bootstrap for the actual script that does the work (exec the program. rather than system; if the cgi script is terminated (the browser is closed) the children would be killed.) (i think)
  3. Hmm, havn't read much about mod_perl, probably worth using if you use the script a lot, otherwise , i'm not so sure.

Take a look at Detect Stop Button for preventing timeouts. Its not the primary focus of the node, but its mentioned

In reply to Re: Is CGI.pm my best choice? by fuzzysteve
in thread Is CGI.pm my best choice? by dru145

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.