in reply to Re^2: execute secondary script not waiting for a result and continue with script
in thread execute secondary script not waiting for a result and continue with script
Another option is to use fork to create new processes and then exec to call the other script:system("test2.pl &");
my $pid = fork; if (defined $pid and !$pid) { exec "test2.pl"; exit(0); # just in case exec fails! }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: execute secondary script not waiting for a result and continue with script
by PugSA (Beadle) on May 30, 2007 at 10:36 UTC |