Changeset 31941 for trunk/tools/runchipimfile.pl
- Timestamp:
- Jul 27, 2011, 3:47:51 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/runchipimfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/runchipimfile.pl
r29809 r31941 18 18 my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps); 19 19 20 my $zaplog; 21 20 22 GetOptions( 21 23 'chip_id=i' => \$chip_id, … … 23 25 'threads=i' => \$threads, 24 26 'pretend' => \$pretend, 27 'zaplog' => \$zaplog, 25 28 'redirect-output' => \$redirect, 26 29 'update' => \$update, … … 95 98 } 96 99 } 97 print "command to process this skycell\n";100 print "command to process this chip\n"; 98 101 print "$command\n"; 99 102 100 103 exit 0 if $pretend; 104 105 # XXX: implement this in chip_imfile.pl 106 if ($zaplog) { 107 my $logfile = $path_base . ".$class_id.log"; 108 my $cmd = "neb-mv $logfile $logfile.trash"; 109 print "$cmd\n"; 110 my $rc = system $cmd; 111 if ($rc) { 112 my $status = $rc >> 8; 113 print STDERR "neb-mv failed with $rc $status\n"; 114 exit $status; 115 } 116 } 101 117 102 118 exit system $command;
Note:
See TracChangeset
for help on using the changeset viewer.
