IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33925


Ignore:
Timestamp:
May 25, 2012, 11:23:43 AM (14 years ago)
Author:
bills
Message:

print a message about success or failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/runchipimfile.pl

    r33067 r33925  
    110110exit 0 if $pretend;
    111111
    112 exit system $command;
     112my $rc = system $command;
     113my $status = $rc >> 8;
     114if ($rc) {
     115    print STDERR "command failed with $rc $status\n";
     116    $status = 1 unless $status;
     117} else {
     118    print "Successfully rebuilt chip $chip_id $class_id\n";
     119}
     120exit $status;
    113121
    114122
Note: See TracChangeset for help on using the changeset viewer.