Index: trunk/ippTasks/camera.pro
===================================================================
--- trunk/ippTasks/camera.pro	(revision 12368)
+++ trunk/ippTasks/camera.pro	(revision 12369)
@@ -143,4 +143,9 @@
     exec mkdir -p $outroot
 
+    $run = camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -148,7 +153,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
     end
-    command camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA --workdir $outroot $ARGS
+    command $run
   end
 
