Changeset 31941 for trunk/tools
- Timestamp:
- Jul 27, 2011, 3:47:51 PM (15 years ago)
- Location:
- trunk/tools
- Files:
-
- 1 added
- 3 edited
-
regenerateinput.pl (added)
-
runchipimfile.pl (modified) (3 diffs)
-
rundiffskycell.pl (modified) (3 diffs)
-
runwarpskycell.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; -
trunk/tools/rundiffskycell.pl
r29176 r31941 26 26 my $dbname = "gpc1"; 27 27 my ($diff_id, $skycell_id, $threads, $update, $redirect); 28 my $zaplog; 28 29 29 30 GetOptions( … … 32 33 'threads=i' => \$threads, 33 34 'redirect-output' => \$redirect, 35 'zaplog' => \$zaplog, 34 36 'update' => \$update, 35 37 'pretend' => \$pretend, … … 74 76 $command .= " --reduction $reduction" if $reduction; 75 77 $command .= " --threads $threads" if $threads; 78 $command .= " --zaplog" if $zaplog; 76 79 77 80 print "command to process this skycell\n"; -
trunk/tools/runwarpskycell.pl
r30857 r31941 17 17 my $dbname = "gpc1"; 18 18 my ($warp_id, $skycell_id, $threads, $update, $redirect, $pretend, $save_temps); 19 my $zaplog; 19 20 20 21 GetOptions( … … 23 24 'threads=i' => \$threads, 24 25 'pretend' => \$pretend, 26 'zaplog' => \$zaplog, 25 27 'redirect-output' => \$redirect, 26 28 'update' => \$update, … … 103 105 exit 0 if $pretend; 104 106 107 # XXX: implement this in warp_skycell.pl 108 if ($zaplog) { 109 my $logfile = $path_base . ".log"; 110 my $cmd = "neb-mv $logfile $logfile.trash"; 111 print "$cmd\n"; 112 my $rc = system $cmd; 113 if ($rc) { 114 my $status = $rc >> 8; 115 print STDERR "neb-mv failed with $rc $status\n"; 116 exit $status; 117 } 118 } 119 120 105 121 exit system $command; 106 122
Note:
See TracChangeset
for help on using the changeset viewer.
