Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I know similar questions to this one my have been asked already but I have a few questions regarding the launch of a CGI script from another CGI script.

I have a script that searches links (it's for a link exchange) which then goes 2 levels deep on each domain to find an email address. This is a LOT of URLs that are being scanned and my web host occassionaly times out. Is it possible to by-pass this by launching a 2nd CGI script that does all the timely work?

If so, what happens when the 2nd CGI is launched? Will the first one infinitely load until the 2nd script is done loading? Is there a way to have the browser finish loading after the initialization of script #2 and let the server finish on it's own? Ultimately, I want script #1 to launch script #2 and be done. Whenever script #2 gets done, I want it to email the user letting them know it's completed.

Replies are listed 'Best First'.
Re: CGI loading another CGI script
by GrandFather (Saint) on May 20, 2007 at 23:43 UTC
Re: CGI loading another CGI script
by Anonymous Monk on May 20, 2007 at 23:23 UTC
    UPDATE: I know Cpanel has this feature when you do a full backup of your site, the browser finishes nicely and about an hour later you get an email saying it's all backed up. That's what I'm trying to get.