Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: system or exec in a web environment

by Abigail-II (Bishop)
on Jun 09, 2004 at 09:12 UTC ( #362663=note: print w/ replies, xml ) Need Help??


in reply to system or exec in a web environment

From reading the man pages, I expect exec to create a new fork
Which man page did you read? The first sentence of my manpage:
The exec function executes a system command and never returns

Is there another way to have the browser-run perl script execute the second script, in the background, and continue without hanging?
Fork, and in the child, first close STDOUT and STDERR (or else the webserver won't think you're done), then exec the second program.

Abigail


Comment on Re: system or exec in a web environment

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (17)
As of 2014-07-24 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (165 votes), past polls