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

the easy way is to use the shell to run the command on the background:
system("test2.pl &");
Another option is to use fork to create new processes and then exec to call the other script:
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

     

    Thank you the fork works