What do you think about this?Thanks again, Fede... ... my $getpid = -1; while ( my @ready = $sel->can_read ) { ... ... # If end-of-file (STDERR or STDOUT) if ( eof ($fh) ) { # Get pid my $getpid = waitpid($pid, WNOHANG); $retcode = $? / 256 if ( $getpid == $pid ); } } print "Exit code: $retcode\n"; ... ...
In reply to Re^2: Catching "exit code" from IPC::Open3
by fedelman
in thread Catching "exit code" from IPC::Open3
by fedelman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |