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
 
Index: trunk/ippTasks/chip.pro
===================================================================
--- trunk/ippTasks/chip.pro	(revision 12368)
+++ trunk/ippTasks/chip.pro	(revision 12369)
@@ -146,4 +146,9 @@
     exec mkdir -p $outroot
 
+    $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -151,7 +156,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
     end
-    command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
+    command $run
   end
 
Index: trunk/ippTasks/detrend.norm.pro
===================================================================
--- trunk/ippTasks/detrend.norm.pro	(revision 12368)
+++ trunk/ippTasks/detrend.norm.pro	(revision 12369)
@@ -175,4 +175,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -180,7 +185,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --workdir $outroot $ARGS
-    end
-    command detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
@@ -293,4 +298,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+    
     # save the pageName for future reference below
     options $pageName
@@ -298,7 +308,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE --workdir $outroot $ARGS
-    end
-    command detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
@@ -408,4 +418,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE  $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -413,7 +428,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE --workdir $outroot $ARGS
-    end
-    command detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 12368)
+++ trunk/ippTasks/detrend.process.pro	(revision 12369)
@@ -165,4 +165,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -170,7 +175,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA --workdir $outroot $ARGS
-    end
-    command detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
@@ -282,4 +287,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -287,7 +297,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA --workdir $outroot $ARGS
-    end
-    command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 12368)
+++ trunk/ippTasks/detrend.reject.pro	(revision 12369)
@@ -144,4 +144,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -149,7 +154,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
     end
-    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
+    command $run
  end
 
Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 12368)
+++ trunk/ippTasks/detrend.resid.pro	(revision 12369)
@@ -165,4 +165,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -170,7 +175,7 @@
     # create command
     if ($VERBOSE > 1)
-      echo command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE --workdir $outroot $ARGS
-    end
-    command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
@@ -283,4 +288,9 @@
     exec mkdir -p $outroot
 
+    $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -288,7 +298,7 @@
     # create example job options as a demonstration
     if ($VERBOSE > 1)
-      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
-    end
-    command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
Index: trunk/ippTasks/detrend.stack.pro
===================================================================
--- trunk/ippTasks/detrend.stack.pro	(revision 12368)
+++ trunk/ippTasks/detrend.stack.pro	(revision 12369)
@@ -148,9 +148,14 @@
     options $pageName
 
+    $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # create the command line
     if ($VERBOSE > 1)
-      echo command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
     end
-    command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
+    command $run
   end
 
Index: trunk/ippTasks/diff.pro
===================================================================
--- trunk/ippTasks/diff.pro	(revision 12368)
+++ trunk/ippTasks/diff.pro	(revision 12369)
@@ -152,4 +152,9 @@
     exec mkdir -p $outroot
 
+    $run = diff_skycell.pl --diff_id $DIFF_ID $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -157,7 +162,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command diff_skycell.pl --diff_id $DIFF_ID --workdir $outroot $ARGS
+      echo command $run
     end
-    command diff_skycell.pl --diff_id $DIFF_ID --workdir $outroot $ARGS
+    command $run
   end
 
Index: trunk/ippTasks/stack.pro
===================================================================
--- trunk/ippTasks/stack.pro	(revision 12368)
+++ trunk/ippTasks/stack.pro	(revision 12369)
@@ -152,4 +152,9 @@
     exec mkdir -p $outroot
 
+    $run = stack_skycell.pl --stack_id $STACK_ID $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -157,7 +162,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command stack_skycell.pl --stack_id $STACK_ID --workdir $outroot $ARGS
+      echo command $run
     end
-    command stack_skycell.pl --stack_id $STACK_ID --workdir $outroot $ARGS
+    command $run
   end
 
Index: trunk/ippTasks/warp.pro
===================================================================
--- trunk/ippTasks/warp.pro	(revision 12368)
+++ trunk/ippTasks/warp.pro	(revision 12369)
@@ -169,4 +169,9 @@
     exec mkdir -p $outroot
 
+    $run = warp_overlap.pl --warp_id $WARP_ID --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $WORKDIR
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -174,7 +179,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command warp_overlap.pl --warp_id $WARP_ID --camera $CAMERA --workdir $outroot $ARGS
-    end
-    command warp_overlap.pl --warp_id $WARP_ID --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
@@ -287,4 +292,9 @@
     exec mkdir -p $outroot
 
+    $run = warp_skycell.pl --warp_id $WARP_ID --skycell_id $SKYCELL_ID --tess_id $TESS_ID --camera $CAMERA $ARGS
+    if ($WORKDIR != NULL)
+      $run = $run --workdir $outroot
+    end
+
     # save the pageName for future reference below
     options $pageName
@@ -292,7 +302,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command warp_skycell.pl --warp_id $WARP_ID --skycell_id $SKYCELL_ID --tess_id $TESS_ID --camera $CAMERA --workdir $outroot $ARGS
-    end
-    command warp_skycell.pl --warp_id $WARP_ID --skycell_id $SKYCELL_ID --tess_id $TESS_ID --camera $CAMERA --workdir $outroot $ARGS
+      echo command $run
+    end
+    command $run
   end
 
