Index: trunk/ippTasks/detrend.norm.pro
===================================================================
--- trunk/ippTasks/detrend.norm.pro	(revision 10692)
+++ trunk/ippTasks/detrend.norm.pro	(revision 10723)
@@ -54,5 +54,6 @@
 
   task.exec
-    command      dettool -tonormalizedstat -simple -limit {$DetrendNormStatFail + 20}
+    # command      dettool -tonormalizedstat -simple -limit {$DetrendNormStatFail + 20}
+    command      dettool -tonormalizedstat -simple
   end
 
@@ -86,14 +87,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.norm: failure"
-    end
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.norm: timeout"
-    end
+    showcommand failure
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand timeout
   end
 end
@@ -153,7 +150,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_norm_calc.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendNormStat -replace -key 1:3 "FAIL $options:0"
     $DetrendNormStatFail ++
@@ -162,7 +157,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_norm_calc.pl $options:0"
-    end
+    showcommand timeout
     queuepush DetrendNormStat -replace -key 1:3 "TIMEOUT $options:0"
    $DetrendNormStatFail ++
@@ -184,5 +177,6 @@
 
   task.exec
-    command      dettool -tonormalize -simple -limit {$DetrendNormFail + 20}
+    # command      dettool -tonormalize -simple -limit {$DetrendNormFail + 20}
+    command      dettool -tonormalize -simple
   end
 
@@ -219,14 +213,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.norm: failure"
-    end
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.norm: timeout"
-    end
+    showcommand failure
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand timeout
   end
 end
@@ -288,7 +278,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_norm_apply.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendNorm -replace -key 4:5 "FAIL $options:0"
     $DetrendNormFail ++
@@ -297,7 +285,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_norm_apply.pl $options:0"
-    end
+    showcommand timeout
     queuepush DetrendNorm -replace -key 4:5 "TIMEOUT $options:0"
     $DetrendNormFail ++
@@ -319,5 +305,6 @@
 
   task.exec
-    command      dettool -tonormalizedexp -simple -limit {$DetrendNormExpFail + 20}
+    # command      dettool -tonormalizedexp -simple -limit {$DetrendNormExpFail + 20}
+    command      dettool -tonormalizedexp -simple
   end
 
@@ -344,5 +331,5 @@
       #$EXP_TYPE = $word:5
       #$IMFILES  = $word:6
-      queuepush DetrendNormalizeExp -uniq -key 1:2 "NEW $DET_ID $ITER $DET_TYPE $CAMERA"
+      queuepush DetrendNormExp -uniq -key 1:2 "NEW $DET_ID $ITER $DET_TYPE $CAMERA"
     end
 
@@ -354,14 +341,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.norm: failure"
-    end
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.norm: timeout"
-    end
+    showcommand failure
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand timeout
   end
 end
@@ -425,18 +408,14 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_norm_exp.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendNormExp -replace -key 1:2 "FAIL $options:0"
-   $DetrendNormExpFail ++
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_norm_exp.pl $options:0"
-    end
+    $DetrendNormExpFail ++
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand timeout
     queuepush DetrendNormExp -replace -key 1:2 "TIMEOUT $options:0"
-   $DetrendNormExpFail ++
-  end
-end
+    $DetrendNormExpFail ++
+  end
+end
Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 10692)
+++ trunk/ippTasks/detrend.process.pro	(revision 10723)
@@ -57,5 +57,7 @@
 
   task.exec
-    command dettool -toprocessedimfile -simple -limit {$DetrendProcessImfileFail + 20}
+    # XXX dettool needs -limit command
+    # command dettool -toprocessedimfile -simple -limit {$DetrendProcessImfileFail + 20}
+    command dettool -toprocessedimfile -simple
   end
 
@@ -91,14 +93,10 @@
   # error
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.process: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.process: timeout"
-    end
+    showcommand
   end
 end
@@ -166,7 +164,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_process_imfile.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendProcessImfiles -replace -key 1:3:5 "FAIL $options:0"
     $DetrendProcessImfileFail ++
@@ -175,7 +171,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "timeout detrend_process_imfile.pl $options:0"
-    end
+    showcommand timeout
     queuepush DetrendProcessImfiles -replace -key 1:3:5 "TIMEOUT $options:0" 
     $DetrendProcessImfileFail ++
@@ -197,5 +191,6 @@
 
   task.exec
-    command dettool -toprocessedexp -simple -limit {$DetrendProcessExpFail + 20}
+    # command dettool -toprocessedexp -simple -limit {$DetrendProcessExpFail + 20}
+    command dettool -toprocessedexp -simple
   end
 
@@ -229,14 +224,10 @@
   # error
   task.exit    default
-    if ($VERBOSE)
-      echo       "detrend.process: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo       "detrend.process: timeout"
-    end
+    showcommand timeout
   end
 end
@@ -300,7 +291,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure for detrend_process_exp.pl: $options:0"
-    end
+    showcommand failure
     queuepush DetrendProcessExposures -replace -key 1:2:4 "FAIL $options:0"
     $DetrendProcessExpFail ++
@@ -309,7 +298,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure for detrend_process_exp.pl: $options:0"
-    end
+    showcommand timeout
     queuepush DetrendProcessExposures -replace -key 1:2:4 "TIMEOUT $options:0"
     $DetrendProcessExpFail ++
Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 10692)
+++ trunk/ippTasks/detrend.reject.pro	(revision 10723)
@@ -53,5 +53,6 @@
 
   task.exec
-    command dettool -residdetrun -simple -limit {$DetrendRejectExpFail + 20}
+    # command dettool -residdetrun -simple -limit {$DetrendRejectExpFail + 20}
+    command dettool -residdetrun -simple
   end
 
@@ -83,14 +84,10 @@
   # locked list
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.reject: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.reject: timeout"
-    end
+    showcommand failure
   end
 end
@@ -123,5 +120,6 @@
     $ITER     = $word:1
     $DET_TYPE = $word:2
-    $CAMERA   = $word:3
+    $MODE     = $word:3
+    $CAMERA   = $word:4
 
     # I'd like to add CAMERA to the log file...
@@ -151,7 +149,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_reject_exp.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendRejectExp -replace -key 1:2 "FAIL $options:0"
     $DetrendRejectExpFail ++
@@ -160,7 +156,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_reject_exp.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendRejectExp -replace -key 1:2 "TIMEOUT $options:0"
    $DetrendRejectExpFail ++
Index: trunk/ippTasks/detrend.resid.pro
===================================================================
--- trunk/ippTasks/detrend.resid.pro	(revision 10692)
+++ trunk/ippTasks/detrend.resid.pro	(revision 10723)
@@ -58,5 +58,6 @@
 
   task.exec
-    command dettool -toresidimfile -simple -limit {$DetrendResidImfileFail + 20}
+    # command dettool -toresidimfile -simple -limit {$DetrendResidImfileFail + 20}
+    command dettool -toresidimfile -simple
   end
 
@@ -97,14 +98,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.resid: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.resid: timeout"
-    end
+    showcommand timeout
   end
 end
@@ -173,7 +170,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_resid.pl $options:0"
-    end
+    showcommand failure
     queuepush DetrendResidImfiles -replace -key 1:2:5:6 "FAIL $options:0"
     $DetrendResidImfileFail ++
@@ -182,7 +177,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_resid.pl $options:0"
-    end
+    showcommand timeout
     queuepush DetrendResidImfiles -replace -key 1:2:6:6 "TIMEOUT $options:0"
     $DetrendResidImfileFail ++
@@ -204,5 +197,6 @@
 
   task.exec
-  command      dettool -toresidexp -simple -limit {$DetrendResidExpFail + 20}
+  # command      dettool -toresidexp -simple -limit {$DetrendResidExpFail + 20}
+  command      dettool -toresidexp -simple
   end
 
@@ -239,14 +233,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo       "detrend.residexp: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo       "detrend.residexp: timeout"
-    end
+    showcommand timeout
   end
 end
@@ -315,7 +305,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure for detrend_reject_imfile.pl: $options:0"
-    end
+    showcommand failure
     queuepush DetrendResidExposures -replace -key 1:2:5 "FAIL $options:0"
     $DetrendResidExpFail ++
@@ -324,7 +312,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure for detrend_reject_imfile.pl: $options:0"
-    end
+    showcommand timeout
     queuepush DetrendResidExposures -replace -key 1:2:5 "TIMEOUT $options:0"
     $DetrendResidExpFail ++
Index: trunk/ippTasks/detrend.stack.pro
===================================================================
--- trunk/ippTasks/detrend.stack.pro	(revision 10692)
+++ trunk/ippTasks/detrend.stack.pro	(revision 10723)
@@ -53,5 +53,6 @@
 
   task.exec
-    command dettool -tostacked -simple -limit {$DetrendStackClassFail + 20}
+    # command dettool -tostacked -simple -limit {$DetrendStackClassFail + 20}
+    command dettool -tostacked -simple
   end
 
@@ -83,14 +84,10 @@
   # locked list
   task.exit    default
-    if ($VERBOSE) 
-      echo       "detrend.stack: failure"
-    end
+    showcommand failure
   end
 
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE) 
-      echo       "detrend.stack: timeout"
-    end
+    showcommand timeout
   end
 end
@@ -153,7 +150,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure detrend_stack.pl $options:0"
-    end
+    showcommand failure
    queuepush DetrendStackClass -replace -key 1:2:4 "FAIL $options:0"
    $DetrendStackClassFail ++
@@ -162,7 +157,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure detrend_stack.pl $options:0"
-    end
+    showcommand timeout
     queuepush DetrendStackClass -replace -key 1:2:4 "TIMEOUT $options:0"
     $DetrendStackClassFail ++
Index: trunk/ippTasks/pantasks.pro
===================================================================
--- trunk/ippTasks/pantasks.pro	(revision 10692)
+++ trunk/ippTasks/pantasks.pro	(revision 10723)
@@ -7,5 +7,7 @@
 # $scripts = $HOME/src/pantasks/ipp/ippTasks
 $scripts = .
-$LOGDIR = `ipp_datapath.pl path://ESSENCE`
+# $LOGDIR = `ipp_datapath.pl path://ESSENCE`
+$LOGDIR = `ipp_datapath.pl path://SIMTEST`
+
 $LOGDIR = $LOGDIR/logs
 exec mkdir -p $LOGDIR
@@ -19,9 +21,10 @@
   if ($parallel) 
     controller exit true
-    controller host add sn2
-    controller host add sn3
-    controller host add sn4
-    controller host add sn5
-#   controller host add sn6
+    controller host add alala
+#    controller host add sn2
+#    controller host add sn3
+#    controller host add sn4
+#    controller host add sn5
+#    controller host add sn6
 # sn7 serves the disk
   end
@@ -31,12 +34,12 @@
 
 macro load.tasks
-  input $scripts/phase0.pro
+#  input $scripts/phase0.pro
 #  input $scripts/phase2.pro
 #  input $scripts/phase3.pro
-#  input $scripts/detrend.process.pro
-#  input $scripts/detrend.stack.pro
-#  input $scripts/detrend.norm.pro
-#  input $scripts/detrend.resid.pro
-#  input $scripts/detrend.reject.pro
+  input $scripts/detrend.process.pro
+  input $scripts/detrend.stack.pro
+  input $scripts/detrend.norm.pro
+  input $scripts/detrend.resid.pro
+  input $scripts/detrend.reject.pro
 end
 
@@ -108,2 +111,18 @@
   exec rm -f ../object/*.p3.*.jpg
 end
+
+macro showcommand
+  local n 
+
+  if ($VERBOSE)
+    $command = $taskarg:0
+    for n 1 $taskarg:n
+      $command = $command $taskarg:$n
+    end
+    if ($0 == 2)
+      echo "$1 for: $command"
+    else
+      echo "command: $command"
+    end    
+  end
+end
Index: trunk/ippTasks/phase0.pro
===================================================================
--- trunk/ippTasks/phase0.pro	(revision 10692)
+++ trunk/ippTasks/phase0.pro	(revision 10723)
@@ -79,14 +79,10 @@
   # locked list
   task.exit    default
-    if ($VERBOSE) 
-      echo "phase0 pending imfiles: failure"
-    end
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE)
-      echo "phase0 pending imfiles: timeout"
-    end
+    showcommand
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand
   end
 end
@@ -153,7 +149,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure for phase0imfile.pl: $options:0"
-    end
+    showcommand
     queuepush Phase0Imfiles -replace -key 1 "FAIL $options:0"
     $Phase0ImfileFail ++
@@ -162,7 +156,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "timeout for phase0imfile.pl: $options:0"
-    end
+    showcommand
     queuepush Phase0Imfiles -replace -key 1 "TIMEOUT $options:0"
     $Phase0ImfileFail ++
@@ -222,14 +214,10 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo       "phase0 pending exp: failure"
-    end
-  end
-
-  # operation times out?
-  task.exit    timeout
-    if ($VERBOSE)
-      echo       "phase0 pending exp: timeout"
-    end
+    showcommand
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand
   end
 end
@@ -293,7 +281,5 @@
   # default exit status
   task.exit    default
-    if ($VERBOSE)
-      echo "failure for phase0exp.pl: $options:0"
-    end
+    showcommand
     queuepush Phase0Exposures -replace -key 1 "FAIL $options:0"
     $Phase0ExpFail
@@ -302,7 +288,5 @@
   # operation times out?
   task.exit    timeout
-    if ($VERBOSE)
-      echo "failure for phase0exp.pl: $options:0"
-    end
+    showcommand
     queuepush Phase0Exposures -replace -key 1 "TIMEOUT $options:0"
     $Phase0ExpFail
Index: trunk/ippTasks/testscript.pro
===================================================================
--- trunk/ippTasks/testscript.pro	(revision 10692)
+++ trunk/ippTasks/testscript.pro	(revision 10723)
@@ -7,8 +7,5 @@
 
   status
-  host add sn2
-  host add sn3
-  host add sn4
-  host add sn5
+  host add alala
 
   status
