Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: exec with cleanup

by bart (Canon)
on Jun 07, 2004 at 13:47 UTC ( [id://361979]=note: print w/replies, xml ) Need Help??


in reply to Re: exec with cleanup
in thread exec with cleanup

But then I'd have to wait until the other script ends, before I can finally end this script. It would effectively keep both in memory at the same time. That doesn't look ideal.

Replies are listed 'Best First'.
Re^3: exec with cleanup
by Anonymous Monk on Jun 07, 2004 at 14:16 UTC
    You can do system("perl script2.pl arg1 arg2 &"), which will return immediately. And system("nohup perl scrip2.pl arg1 arg2 &") won't die when the parent process exits.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found