Index: trunk/ippTasks/camera.pro
===================================================================
--- trunk/ippTasks/camera.pro	(revision 12370)
+++ trunk/ippTasks/camera.pro	(revision 12371)
@@ -145,5 +145,5 @@
     $run = camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/chip.pro
===================================================================
--- trunk/ippTasks/chip.pro	(revision 12370)
+++ trunk/ippTasks/chip.pro	(revision 12371)
@@ -148,5 +148,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/detrend.norm.pro
===================================================================
--- trunk/ippTasks/detrend.norm.pro	(revision 12370)
+++ trunk/ippTasks/detrend.norm.pro	(revision 12371)
@@ -177,5 +177,5 @@
     $run = detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
@@ -300,5 +300,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
     
@@ -420,5 +420,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 12370)
+++ trunk/ippTasks/detrend.process.pro	(revision 12371)
@@ -167,5 +167,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
@@ -289,5 +289,5 @@
     $run = detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 12370)
+++ trunk/ippTasks/detrend.reject.pro	(revision 12371)
@@ -146,5 +146,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 12370)
+++ trunk/ippTasks/detrend.resid.pro	(revision 12371)
@@ -167,5 +167,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
@@ -290,5 +290,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/detrend.stack.pro
===================================================================
--- trunk/ippTasks/detrend.stack.pro	(revision 12370)
+++ trunk/ippTasks/detrend.stack.pro	(revision 12371)
@@ -150,5 +150,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/diff.pro
===================================================================
--- trunk/ippTasks/diff.pro	(revision 12370)
+++ trunk/ippTasks/diff.pro	(revision 12371)
@@ -154,5 +154,5 @@
     $run = diff_skycell.pl --diff_id $DIFF_ID $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/stack.pro
===================================================================
--- trunk/ippTasks/stack.pro	(revision 12370)
+++ trunk/ippTasks/stack.pro	(revision 12371)
@@ -154,5 +154,5 @@
     $run = stack_skycell.pl --stack_id $STACK_ID $ARGS
     if ("$WORKDIR" != "NULL")
-      $run = $run --workdir $outroot
+      $run = $run --workdir $WORKDIR
     end
 
Index: trunk/ippTasks/warp.pro
===================================================================
--- trunk/ippTasks/warp.pro	(revision 12370)
+++ trunk/ippTasks/warp.pro	(revision 12371)
@@ -294,5 +294,5 @@
     $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
+      $run = $run --workdir $WORKDIR
     end
 
