Thanks Edan.

Well, I have done the project now, but take this into consideration for the upgrade - which I am already thinking about. My solution was to open a tiny browser window, make it the same colour as the background of the web page, and leave it running "hidden". A real cludge I know, but I really needed to move on here.
Thanks for the advice anyway
Couple of questions though:
  1. How do I go about re-opening STD(IN|OUT|ERR)?
  2. If I close STDOUT, how do I get hold of my STDOUT from the perl script or more importantly the system call?

merlyn gave me a useful link to his long-running CGI process, but it did not work as I expected.
I rather expected that every couple of seconds it would return, and update the page.
Instead, it waited till the traceroute completed altogther before giving the results.
I wondered whether this had to do with running it under Apache 2 rather than 1.3?
Have you any comments on his long-running process?

Thanks for your help though
Cheers
Hambo

--
Open Source - Where everything is QED
Perl - where programming is FUN

In reply to Re: Re: Re: Re: Closing parent CGI after fork() by hambo
in thread Closing parent CGI after fork() by hambo

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.