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