Howdy Monks,

Let me start off by saying that this is my first CGI script, but I have written quite a few perl scripts in the past. I wrote a web interface (with CGI.pm) which produces a report from our firewall logs for certain criteria which the user defines (ie. ip address, port number, date, etc). It works fine when it is a small report that only takes 5 minutes or less, but if it has to parse a large amount of traffic over many log files, the script timesout before it is complete. I have a few questions:
  1. Does the webserver (apache in this case) control the timeout of a CGI program or can this be configured in the cgi program?
  2. Is there a way to have the script stay running even if I close the browser? Right now if I close the browser, it kills the script.
  3. Last. Might it be a better idea to use mod_perl instead? I've been reading up on mod_perl and it seems to be good if you are a little more advanced in Perl (which I don't feel I am yet) and it has more options then CGI.pm

TIA
-Dru

In reply to 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.