Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: cgi,wait for long running external prog

by sundialsvc4 (Abbot)
on Feb 14, 2014 at 02:18 UTC ( #1074926=note: print w/ replies, xml ) Need Help??


in reply to cgi,wait for long running external prog

Two thoughts here ...

First of all, in this case you should think of “a web page” as merely being a form of user-interface.   The fundamental nature of this user interface is that it appears, it exists, and then (forever ...) it is gone.   The user does not want to wait until his request is actually completed; nor should he have to; nor does the HTTP protocol support it.   Therefore, if you have long-running work to do, you need a separate mechanism, entirely apart from any and every web-page, entirely apart from the Apache-or-whatever web-server, to do that.

Second, “batch-job managers” already exist for every computing platform.   So do (web, and other) interfaces to them.   Therefore, your present requirement does not consist of “rolling your own [anything].”   It consists of finding, and employing, prior-art.   You are in Rome.   Find some Romans, and go do what they are [already ...] doing.


Comment on Re: cgi,wait for long running external prog

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074926]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-18 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls