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/chip.pro

    r12224 r12368  
    135135
    136136    ## generate output log based on filerule
    137     $outroot = `ipp_datapath.pl $WORKDIR`
     137    if ($WORKDIR == NULL)
     138      $outroot = `pwd`
     139    else
     140      $outroot = `ipp_datapath.pl $WORKDIR`
     141    end
    138142    $outroot = $outroot/$EXP_ID
    139143    $logfile = $outroot/chip.$CLASS_ID.log
     
    147151    # create the command line
    148152    if ($VERBOSE > 1)
    149       echo command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
     153      echo command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
    150154    end
    151     command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
     155    command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
    152156  end
    153157
Note: See TracChangeset for help on using the changeset viewer.