It's important to check the return code ofrun()to see if the command ran successfully.run()returns a boolean true on success, and false on failure. Note that this is the opposite of Perl'ssystem(), which returns 0 on success and a non-zero value on failures. For the specific subproc...
README Code of conduct LicenseNAMEIPC::Run - system() and background procs w/ piping, redirs, ptys (Unix, Win32)SYNOPSIS## First,a command to run: my @cat = qw( cat ); ## Using run() instead of system(): use IPC::Run qw( run timeout ); run \@cat, \$in, \$out, \...
Of course, using method call syntax lets you deal with any IPC::Run subclasses that might crop up, but don't hold your breath waiting for any.run() and finish() return TRUE when all subcommands exit with a 0 result code. This is the opposite of perl's system() command....
Code Repository files navigation README License NAME IPC::Run - system() and background procs w/ piping, redirs, ptys (Unix, Win32) SYNOPSIS ## First,a command to run: my @cat = qw( cat ); ## Using run() instead of system(): use IPC::Run qw( run timeout ); run \@cat,...