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

    r12240 r12368  
    132132
    133133    # output log from filerule
    134     $outroot = `ipp_datapath.pl $WORKDIR`
     134    if ($WORKDIR == NULL)
     135      $outroot = `pwd`
     136    else
     137      $outroot = `ipp_datapath.pl $WORKDIR`
     138    end
    135139    $outroot = $outroot/$EXP_ID
    136140    $logfile = $outroot/cam.log
     
    144148    # create the command line
    145149    if ($VERBOSE > 1)
    146       echo command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA $ARGS
     150      echo command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA --workdir $outroot $ARGS
    147151    end
    148     command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA $ARGS
     152    command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA --workdir $outroot $ARGS
    149153  end
    150154
Note: See TracChangeset for help on using the changeset viewer.