Changeset 31941 for trunk/tools/runwarpskycell.pl
- Timestamp:
- Jul 27, 2011, 3:47:51 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/runwarpskycell.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
