Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-29 06:18 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (260 votes), past polls