| Run documentation | view source | Contained in the Run distribution. |
Run - Perl extension for to start programs in background
use Run; $pid = spawn 'long_running_task', 'arg1', 'arg2' or die "spawn: $!"; do_something_else(); waitpid($pid,0);
The subroutine spawn is equivalent to the builtin system (see
system LIST in perlfunc) with the exceptions that the program is
started in background, and the return the pid of the kid.
Returns 0 on failure, $! should contain the reason for the failure.
Exports spawn by default.
Ilya Zakharevich <ilya@math.ohio-state.edu
What to do with errs in or? Should they be cleared?
PERL_RUN_DEBUG is used to set debugging flag.
open FH, ">&=FH1" creates a "naughty" copy of FH1. Closing
FH will invalidate FH1.
perl(1).
| Run documentation | view source | Contained in the Run distribution. |