Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 9490)
+++ trunk/ippTasks/detrend.resid.pro	(revision 9506)
@@ -30,6 +30,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -79,6 +79,6 @@
 # copy new images, sending job to desired host
 task	       dettool.resid.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -154,6 +154,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -178,5 +178,6 @@
       $EXP_TAG  = $word:3
       $INCLUDE  = $word:4
-      queuepush DetrendResidExposures -uniq -key 1:2:4 "NEW $DET_ID $ITER $DET_TYPE $EXP_TAG $INCLUDE"
+      $CAMERA   = $word:5
+      queuepush DetrendResidExposures -uniq -key 1:2:4 "NEW $DET_ID $ITER $DET_TYPE $EXP_TAG $INCLUDE $CAMERA"
     end
 
@@ -199,6 +200,6 @@
 # copy new images, sending job to desired host
 task	       dettool.residexp.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -226,4 +227,5 @@
     $EXP_TAG  = $word:3
     $INCLUDE  = $word:4
+    $CAMERA   = $word:5
 
     # XXX add $WORKDIR/$LOG_DIR
@@ -250,9 +252,9 @@
     options "$line"
     if ($drop) 
-      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --reject
-      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --reject
+      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --reject
+      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --reject
     else 
-      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE
-      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE
+      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
+      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
     end
   end
