Good afternoon. I want to start a perl script on a remote web server using http. That is easy. But the problem is that I need the http connection to end before the remote server script is done. I don't need to wait for it to complete, just a reply that it is has started is fine. Let me illustrate:
Local server script runs this code:
use LWP::Simple;
get "http://remoteserver.com/startrunning.pl";
Remote web server with script startrunning.pl runs:
print "Content-type: text/html\n\n";
print "ok";
#need to kill the http connection here
#start doing lots of things that are time consuming
blah1();
blah2();
...
I want to start the startrunning.pl script on the remote web server, but I can't have the local script that made the original http call waiting for the remote server to finish. I just need to trigger the startrunning.pl scrip and then drop the http connection. I hope this make sense and I hope there is a solution. Thank you.