2013-08-02から1日間の記事一覧

Perl - 子プロセスの終了ステータスの調べ方

http://perldoc.perl.org/functions/system.html # sample.pl system @ARGV; if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; }…