in reply to Debug a long-running CGI script?

I suspect you're trouble could be your browser stops waiting for more data from the server after say 60 seconds. To get around this you might be able to print an HTML comment periodically to the client during your calculations. Of course if the script is calculating to generate an image (like plotting a graph) then you can't. Maybe though you can keep printing out useless header lines until it's ready to print the image. Just a thought. :^\