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

    r17943 r18048  
    2626# Parse the command-line
    2727my ( $det_id, $iter, $class_id, $value, $input_uri, $camera, $det_type, $outroot, $dbname, $verbose,
    28      $no_update, $no_op );
     28     $no_update, $no_op, $redirect );
    2929GetOptions(
    3030    'det_id|d=s'        => \$det_id,     # Detrend ID
     
    4040    'no-update'         => \$no_update,  # Don't update the database
    4141    'no-op'             => \$no_op,      # Don't do any operations
     42    'redirect-output'   => \$redirect,   # send output from script to LOG.IMFILE
    4243    ) or pod2usage( 2 );
    4344
     
    5657$ipprc->define_camera($camera);
    5758
     59my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id)
     60        or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
     61$ipprc->redirect_output($logDest) if $redirect;
     62
    5863my $RECIPE_PPIMAGE = 'PPIMAGE_N'; # Recipe to use with ppImage
    5964my $RECIPE_PPSTATS = 'CHIPSTATS'; # Recipe to use with ppStats
     
    100105my $statsName = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
    101106my $traceDest = $ipprc->filename("TRACE.IMFILE",  $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
    102 my $logDest   = $ipprc->filename("LOG.IMFILE",    $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
    103107
    104108# Run normalisation
Note: See TracChangeset for help on using the changeset viewer.