Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Creating a background task from the web

by jasonk (Parson)
on Jan 29, 2009 at 17:00 UTC ( #739965=note: print w/replies, xml ) Need Help??

in reply to Re: Creating a background task from the web
in thread Creating a background task from the web

This isn't a valid comparison, though. To compare it to a web application, you would have to run it as:

perl -e 'system( "emacs &"); print "hello";'; exit

And at this point, depending on a variety of factors (whether it's a local shell or an ssh connection to another host, what shell you are using, what command you ran) the exit may work, or it may sit and wait for the background command to finish, since STDOUT and STDERR are still connected.
We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^3: Creating a background task from the web
by jethro (Monsignor) on Jan 29, 2009 at 18:38 UTC
    You may have a point there. But shouldn't STDOUT and STDERR be inherited from the webserver and therefore the webserver not have to wait for a close.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739965]
[marioroy]: The nature of the Guitar
[Discipulus]: my best with guitar is to fingerpicking some De André songs
[karlgoethebier]: Listen to Glenn: https://www. v=SiiVK3rMxxg
[karlgoethebier]: marioroy: If you provide an email address i'll send you the full script of TNOG...
[karlgoethebier]: marioroy: Checkout also "Linear Expressions" by the same author...
[marioroy]: thanks karlgoethebier.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-03-24 10:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (298 votes). Check out past polls.