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_process_exp.pl

    r17943 r18048  
    2727
    2828my ( $det_id, $exp_id, $det_type, $exp_tag, $camera, $outroot, $dbname, $reduction, $verbose, $no_update,
    29      $no_op, $save_temps );
     29     $no_op, $save_temps, $redirect );
    3030GetOptions(
    3131    'det_id|d=s'        => \$det_id,
     
    4141    'no-op'             => \$no_op,
    4242    'save-temps'        => \$save_temps, # Save temporary files?
     43    'redirect-output'   => \$redirect,
    4344) or pod2usage( 2 );
    4445
     
    5455
    5556$ipprc->define_camera($camera);
     57
     58if ($redirect) {
     59    my $logDest = $ipprc->filename("LOG.EXP", $outroot, "NONE")
     60        or &my_die("Missing entry in file rules", $det_id, $exp_id, $PS_EXIT_CONFIG_ERROR);
     61    $ipprc->redirect_output($logDest);
     62}
    5663
    5764# Recipes to use based on reduction class
Note: See TracChangeset for help on using the changeset viewer.