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/ippTasks/detrend.stack.pro

    r17699 r18048  
    55# test for required global variables
    66check.globals
    7 
    8 $LOGSUBDIR = $LOGDIR/detrend
    9 exec mkdir -p $LOGSUBDIR
    107
    118book init detPendingStackedImfile
     
    5350
    5451  stdout NULL
    55   stderr $LOGSUBDIR/detstack.log
     52  stderr $LOGDIR/detrend.stack.load.log
    5653
    5754  task.exec
     
    125122    sprintf outroot "%s/%s.%s.%s/%s.%s.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
    126123
    127     ## generate output log based on filerule (convert the URI to a PATH)
    128     $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    129     if ("$logfile" == "")
    130       echo "WARNING: logfile not defined in detrend.stack.pro:141"
    131       break
    132     end
     124    stdout $LOGDIR/detrend.stack.run.log
     125    stderr $LOGDIR/detrend.stack.run.log
    133126
    134     stdout $logfile
    135     stderr $logfile
    136     dirname $logfile -var outpath
    137     mkdir $outpath
    138 
    139     $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
     127    $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --outroot $outroot --redirect-output
    140128    if ("$REDUCTION" != "NULL")
    141129      $run = $run --reduction $REDUCTION
Note: See TracChangeset for help on using the changeset viewer.