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/ippScripts/scripts/chip_imfile.pl

    r31905 r31941  
    4444my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose,
    4545     $no_update, $save_temps, $no_op, $redirect, $magicked, $deburned );
     46
     47my $zaplog = 0;
     48
    4649GetOptions(
    4750    'exp_id=s'          => \$exp_id,    # Exposure identifier
     
    6265    'no-op'             => \$no_op,     # Don't do any operations?
    6366    'redirect-output'   => \$redirect,
     67    'zaplog'            => \$zaplog,
    6468    'save-temps'        => \$save_temps, # Save temporary files?
    6569    ) or pod2usage( 2 );
     
    9094my ($logDest, $traceDest);
    9195if ($run_state eq 'new') {
    92     $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, 0);
     96    $logDest = prepare_output("LOG.IMFILE", $outroot, $class_id, $zaplog);
    9397    $traceDest = prepare_output("TRACE.IMFILE",  $outroot, $class_id, 1);
    9498} else {
Note: See TracChangeset for help on using the changeset viewer.