Help for this page

Select Code to Download


  1. or download this
    for my $cmd (@cmds) {
       system($cmd)
    ...
       die("<$cmd> died from signal ", ($? & 0x7F), "\n") if $? & 0x7F;
       die("<$cmd> exited with code ", ($? >> 8), "\n")   if $? >> 8;
    }