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

    r17943 r18048  
    3636# parse the command-line options
    3737my ( $det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $outroot, $dbname, $reduction,
    38      $verbose, $no_update, $no_op, $save_temps );
     38     $verbose, $no_update, $no_op, $save_temps, $redirect );
    3939GetOptions(
    4040           'det_id|d=s'        => \$det_id,
     
    5353           'no-op'             => \$no_op,
    5454           'save-temps'        => \$save_temps, # Save temporary files?
     55           'redirect-output'   => \$redirect,   # redirect output from LOG.IMFILE
    5556           ) or pod2usage( 2 );
    5657
     
    6869# load IPP config information for the specified camera
    6970$ipprc->define_camera($camera);
     71if ($redirect) {
     72    # XXX should this really be going to LOG.IMFILE?
     73    # That's where detrend.resid.pro was sending it
     74    my $logDest     = $ipprc->filename("LOG.IMFILE", $outroot, "NONE")
     75       or &my_die("Missing entry from camera config", $det_id, $iter, $exp_id, $PS_EXIT_CONFIG_ERROR);
     76    $ipprc->redirect_output($logDest);
     77}
     78
    7079
    7180# Recipes to use based on reduction class
Note: See TracChangeset for help on using the changeset viewer.