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.process.pro

    r17699 r18048  
    55# test for required global variables
    66check.globals
    7 
    8 $LOGSUBDIR = $LOGDIR/detrend
    9 exec mkdir -p $LOGSUBDIR
    107
    118book init detPendingProcessedImfile
     
    7168
    7269  stdout NULL
    73   stderr $LOGSUBDIR/detproc.imfile.log
     70  stderr $LOGDIR/detproc.imfile.load.log
    7471
    7572  task.exec
     
    152149    end
    153150
    154     stdout $logfile
    155     stderr $logfile
     151    stdout $LOGDIR/detproc.imfile.run.log
     152    stderr $LOGDIR/detproc.imfile.run.log
    156153    dirname $logfile -var outpath
    157154
     
    159156    mkdir $outpath
    160157
    161     $run = detrend_process_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --det_type $DET_TYPE --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA --outroot $outroot
     158    $run = detrend_process_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --det_type $DET_TYPE --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA --outroot $outroot --redirect-output
    162159    if ("$REDUCTION" != "NULL")
    163160      $run = $run --reduction $REDUCTION
     
    199196
    200197  stdout NULL
    201   stderr $LOGSUBDIR/detproc.exp.log
     198  stderr $LOGDIR/detproc.exp.load.log
    202199
    203200  task.exec
     
    271268    sprintf outroot "%s/%s.%s.%s/%s/%s.detproc.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID
    272269
    273     ## generate output log based on filerule (convert the URI to a PATH)
    274     $logfile = `ipp_filename.pl --touch --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    275     if ("$logfile" == "")
    276       echo "WARNING: logfile not defined in detrend.process.pro:282"
    277       break
    278     end
    279 
    280     stdout $logfile
    281     stderr $logfile
    282     dirname $logfile -var outpath
    283     mkdir $outpath
    284 
    285     $run = detrend_process_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
     270    stdout $LOGDIR/detproc.exp.run.log
     271    stderr $LOGDIR/detproc.exp.run.log
     272
     273    $run = detrend_process_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot --redirect-output
    286274    if ("$REDUCTION" != "NULL")
    287275      $run = $run --reduction $REDUCTION
Note: See TracChangeset for help on using the changeset viewer.