Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
To make the process easier, Ive scheduled a batch job to be running at frequent intervals in the remote machine, which keeps looking for an entry in a text file, if there is any, it takes the inputs and feeds it to generate_report.pl. One can make the entry in the text file using a cgi script from a machine in the network.
My question is whether I can use a cgi script to execute the perl script generate_report.pl at that time on a click of a button? The script takes some hours, so I always get an error in IE, or it hangs... This is because if I make an entry in the text file, I have to wait until the next scheduled time of the batch job and then another couple of hours to get the report!
There is no way that the report can be generated faster (even if yes, then 2 hours instead of 3 is only possible!). My only problem is an alternative to running it explicitly in the remote machine.janitored by ybiC: Retitle from "cgi perl", replace <br>'s with balanced <p>'s for legibility
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Launch background perl script from CGI
by Roger (Parson) on Dec 11, 2003 at 04:34 UTC | |
by Anonymous Monk on Dec 11, 2003 at 05:39 UTC | |
by Roger (Parson) on Dec 11, 2003 at 06:15 UTC | |
by Anonymous Monk on Dec 11, 2003 at 06:30 UTC | |
by edan (Curate) on Dec 11, 2003 at 07:08 UTC | |
by Roger (Parson) on Dec 11, 2003 at 06:50 UTC |