IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 5:41:36 PM (19 years ago)
Author:
Paul Price
Message:

Fixing up workdir, so that operations go into the current directory if workdir is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.reject.pro

    r12126 r12368  
    133133    end
    134134
    135     # I'd like to add CAMERA to the log file...
    136     $outroot = `ipp_datapath.pl $WORKDIR`
     135    if ($WORKDIR == NULL)
     136      $outroot = `pwd`
     137    else
     138      $outroot = `ipp_datapath.pl $WORKDIR`
     139    end
    137140    $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    138141    $logfile = $outroot/reject.$DET_ID.$ITERATION.log
     
    146149    # create example job options as a demonstration
    147150    if ($VERBOSE > 1)
    148       echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA $ARGS
     151      echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
    149152    end
    150     command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA $ARGS
     153    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
    151154 end
    152155
Note: See TracChangeset for help on using the changeset viewer.