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.
spawn
system
pid
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?
errs
or
PERL_RUN_DEBUG is used to set debugging flag.
PERL_RUN_DEBUG
open FH, ">&=FH1" creates a "naughty" copy of FH1. Closing FH will invalidate FH1.
open FH, ">&=FH1"
FH1
FH
perl(1).
To install Run, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Run
CPAN shell
perl -MCPAN -e shell install Run
For more information on module installation, please visit the detailed CPAN module installation guide.