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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.