What is the best/proper way to have one script run another and pass neede information to it?
I have a cgi web page that can be used to request a report. Certain options can make it take a long time to generate the report and the web page will timeout and kill the script.
So what I did is I created a separate script that can generate the report an email it to the user if those options are selected. Now I just need to get the cgi script to invoke the other one and pass it some needed information, so of which is in hashes.
The low-tech plan I have at the moment is to have the cgi script write all the needed information to a uniquely named text file and then run the pl script from a system command with the name of that file. The pl script would then open that file and read the contents back into it's own variables and carry on.
I'm just wondering if there is a better way to do it.
_________
Rott Paws
...It's not a bug. It's an undocumented feature!!!
I have a cgi web page that can be used to request a report. Certain options can make it take a long time to generate the report and the web page will timeout and kill the script.
So what I did is I created a separate script that can generate the report an email it to the user if those options are selected. Now I just need to get the cgi script to invoke the other one and pass it some needed information, so of which is in hashes.
The low-tech plan I have at the moment is to have the cgi script write all the needed information to a uniquely named text file and then run the pl script from a system command with the name of that file. The pl script would then open that file and read the contents back into it's own variables and carry on.
I'm just wondering if there is a better way to do it.
_________
Rott Paws
...It's not a bug. It's an undocumented feature!!!