IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31941 for trunk/tools


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)

Location:
trunk/tools
Files:
1 added
3 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;
  • trunk/tools/rundiffskycell.pl

    r29176 r31941  
    2626my $dbname = "gpc1";
    2727my ($diff_id, $skycell_id, $threads, $update, $redirect);
     28my $zaplog;
    2829
    2930GetOptions(
     
    3233    'threads=i'         => \$threads,
    3334    'redirect-output'   => \$redirect,
     35    'zaplog'            => \$zaplog,
    3436    'update'            => \$update,
    3537    'pretend'           => \$pretend,
     
    7476$command .= " --reduction $reduction" if $reduction;
    7577$command .= " --threads $threads" if $threads;
     78$command .= " --zaplog" if $zaplog;
    7679
    7780print "command to process this skycell\n";
  • 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.