IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2011, 3:47:51 PM (15 years ago)
Author:
bills
Message:

add script to regenerate missing input files for a given component. Add flag
to tell the various scripts to delete existing log file (for use when the instance
is not available)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/runchipimfile.pl

    r29809 r31941  
    1818my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps);
    1919
     20my $zaplog;
     21
    2022GetOptions(
    2123    'chip_id=i'         => \$chip_id,
     
    2325    'threads=i'         => \$threads,
    2426    'pretend'           => \$pretend,
     27    'zaplog'            => \$zaplog,
    2528    'redirect-output'   => \$redirect,
    2629    'update'            => \$update,
     
    9598    }
    9699}
    97 print "command to process this skycell\n";
     100print "command to process this chip\n";
    98101print "$command\n";
    99102
    100103exit 0 if $pretend;
     104
     105# XXX: implement this in chip_imfile.pl
     106if ($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}
    101117
    102118exit system $command;
Note: See TracChangeset for help on using the changeset viewer.