Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Spawning a process from Main script

by deadpickle (Pilgrim)
on Jun 23, 2009 at 23:26 UTC ( [id://774198]=perlquestion: print w/replies, xml ) Need Help??

deadpickle has asked for the wisdom of the Perl Monks concerning the following question:

Not sure how to do this so maybe there are some ideas. There is a main script that runs. When it gets to a certain point it spawns or initiates another program that goes its own separate way. The main program then continues on its merry way not knowing whether the script it spawned ran correctly or not... and it doesnt care. Any ideas?

Replies are listed 'Best First'.
Re: Spawning a process from Main script
by morgon (Priest) on Jun 23, 2009 at 23:34 UTC
    Which system are you running on?

    You probably want to look at fork (perldoc -f fork).

    Your parent-process however will get a signal when you child exits so if you don't want that there are techniques to completely disassociate a process from it's parent wich usually involve forking twice - that is if you run on *nix...

Re: Spawning a process from Main script
by Anonymous Monk on Jun 24, 2009 at 09:37 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found