IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2008, 8:46:59 AM (18 years ago)
Author:
bills
Message:

Resolve log file and redirect output in scripts not in tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_resid.pl

    r17971 r18048  
    2525
    2626my ( $det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,
    27      $dbname, $reduction, $verbose, $no_update, $no_op );
     27     $dbname, $reduction, $verbose, $no_update, $no_op, $redirect );
    2828GetOptions(
    2929    'det_id|d=s'        => \$det_id,
     
    4343    'no-update'         => \$no_update,
    4444    'no-op'             => \$no_op,
     45    'redirect-output'   => \$redirect,
    4546) or pod2usage( 2 );
    4647
     
    6162
    6263$ipprc->define_camera($camera);
     64my $logDest     = $ipprc->filename("LOG.IMFILE", $outroot, $class_id);
     65if ($redirect) {
     66    $ipprc->redirect_output($logDest);
     67}
    6368
    6469# Recipes to use as a function of detrend type and mode
     
    137142my $outputStats = $ipprc->filename("PPIMAGE.STATS",  $outroot, $class_id);
    138143my $traceDest   = $ipprc->filename("TRACE.IMFILE",   $outroot, $class_id);
    139 my $logDest     = $ipprc->filename("LOG.IMFILE",     $outroot, $class_id);
    140144
    141145# Run ppImage & ppStats
Note: See TracChangeset for help on using the changeset viewer.