Index: /trunk/ippTasks/pantasks.pro
===================================================================
--- /trunk/ippTasks/pantasks.pro	(revision 10674)
+++ /trunk/ippTasks/pantasks.pro	(revision 10675)
@@ -2,5 +2,6 @@
 $network = 1
 $parallel = 1
-$scripts = $HOME/src/pantasks/ipp/ippTasks
+# $scripts = $HOME/src/pantasks/ipp/ippTasks
+$scripts = .
 $LOGDIR = `ipp_datapath.pl path://ESSENCE/`
 $LOGDIR = "$LOGDIR/logs"
Index: /trunk/ippTasks/phase0.pro
===================================================================
--- /trunk/ippTasks/phase0.pro	(revision 10674)
+++ /trunk/ippTasks/phase0.pro	(revision 10675)
@@ -16,4 +16,5 @@
 
 $Phase0ImfileFail = 0
+$Phase0ExpFail = 0
 
 if ($?LOGDIR == 0)
@@ -28,5 +29,5 @@
 # compare the new list with the ones already selected
 task	       phase0.imfile.load
-#  command      p0tool -pendingimfile -simple
+  command      p0tool -pendingimfile -simple
   host         local
 
@@ -39,5 +40,5 @@
 
   task.exec
-    command      p0tool.sh {$Phase0ImfileFail + 20}
+    command p0tool -pendingimfile -simple -limit {$Phase0ImfileFail + 20}
   end
 
@@ -45,11 +46,9 @@
   task.exit    0
     local i Nqueue
-
-    # save stdout and stderr
 
     # compare output with Phase0Imfiles queue
     # only add entries which don't exist in queue
     queuesize stdout -var Nqueue
-    for i 0 {$Nqueue << 20}
+    for i 0 $Nqueue
       queuepop stdout -var line
       echo $line
@@ -154,5 +153,4 @@
 # compare the new list with the ones already selected
 task	       phase0.exp.load
-  command      p0tool -pendingexp -simple
   host         local
 
@@ -163,4 +161,8 @@
   stdout $LOGSUBDIR/phase0.exp.log
   stderr $LOGSUBDIR/phase0.exp.log
+
+  task.exec
+    command p0tool -pendingexp -simple -limit {$Phase0ExpFail + 20}
+  end
 
   # success
@@ -253,4 +255,5 @@
   task.exit    default
     queuepush Phase0Exposures -replace -key 1 "FAIL $options:0"
+    $Phase0ExpFail
   end
 
