in reply to Getting back control..to main script
Use exec instead of system. (Click on the links for documentation).
Update: I forgot to include that this only works in combination with fork. For a nice PM node discussing how to use fork and exec together to get back control immediately after starting a child process see Fork and exec. This chapter that O'Reilly has posted from one of their books, has some good examples: see 10.10 Forking/Spawning Child Processes
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting back control..to main script
by chrestomanci (Priest) on Feb 24, 2011 at 14:51 UTC | |
Re^2: Getting back control..to main script
by shayak (Novice) on Feb 24, 2011 at 14:20 UTC | |
by ELISHEVA (Prior) on Feb 24, 2011 at 14:33 UTC | |
by Ratazong (Monsignor) on Feb 24, 2011 at 14:40 UTC |
In Section
Seekers of Perl Wisdom