>I have web page that downloads and extracts images based on file
>selection. The thank you page will not be displayed until the download
>is complete... (Understandable).  One of the download files is quite big
>and the web server is timing out. I would like to thank you page to be
>displayed instantly while the download continues to run in the
>background; kind of like the '&' does at the end of a bash command. Is
>this possible?
>
Hello,

If I'm you,I'll try both of the two ways.
1) Fork a child process and call "exec" to execute that system command.Surely 
if you run the system command in parent process,the webpage should get timeout 
(so if you really want to do it in CGI processes,you need to set timeout using 
perl's eval{} and $SIG{ALRM}).
2) CGI doesn't execute that big download,but just set a label in somewhere like 
database.Then another program read that label periodicly (by crontab) and do 
the actual download.

Maybe I'm not correct too,but hope this some helps.:)

--
mailto: [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to