I have a slow perl script (slow meaning it loads a few thousand public proxies) and a client was interested in hiring me to change my Perl script to a CGI script for them to use on their server.
The script itself can take up to 3-5 hours to process completely depending on how many proxies there are and how fast they respond. Either way, on the best day it's TOO SLOW to process on the server without it timing out.
My question is, how do Cpanel backups work? The script launches and tells you it'll email you when it's done. And maybe an hour later you get an email but the page you were on was done loading.
Is it possible to make a separate CGI script load off the web host instead of the browser? Would this mean it wouldn't be limited by the timeout time?
Would my first script take the information and exec the second script, then print "Done! Check your email for results!" and in a few hours the other script will finish and email the user?
Any help would be much appreciated.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |