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/runwarpskycell.pl

    r30857 r31941  
    1717my $dbname = "gpc1";
    1818my ($warp_id, $skycell_id, $threads, $update, $redirect, $pretend, $save_temps);
     19my $zaplog;
    1920
    2021GetOptions(
     
    2324    'threads=i'         => \$threads,
    2425    'pretend'           => \$pretend,
     26    'zaplog'            => \$zaplog,
    2527    'redirect-output'   => \$redirect,
    2628    'update'            => \$update,
     
    103105exit 0 if $pretend;
    104106
     107# XXX: implement this in warp_skycell.pl
     108if ($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
    105121exit system $command;
    106122
Note: See TracChangeset for help on using the changeset viewer.