Index: trunk/ippTasks/phase0.pro
===================================================================
--- trunk/ippTasks/phase0.pro	(revision 10638)
+++ trunk/ippTasks/phase0.pro	(revision 10673)
@@ -15,22 +15,5 @@
 end
 
-macro test.p0
-    list testlist -x "p0tool -pendingimfile -simple"
-    echo $testlist:n
-    for i 0 $testlist:n
-      queuepush stdout "$testlist:$i"
-    end
-    echo Done pushing.
-    queuesize stdout -var Nqueue
-    for i 0 $Nqueue
-      queuepop stdout -var line
-      list word -split $line
-      $EXP_TAG  = $word:0
-      $CLASS    = $word:1
-      $CLASS_ID = $word:2
-      $URI      = $word:3
-      queuepush Phase0Imfiles -uniq -key 1 "NEW $EXP_TAG $CLASS $CLASS_ID $URI"
-    end
-end
+$Phase0ImfileFail = 0
 
 # select images ready for phase0 analysis
@@ -39,13 +22,16 @@
 task	       phase0.imfile.load
 #  command      p0tool -pendingimfile -simple
-  command      /home/price/ipp/ippTasks/p0tool.sh
   host         local
 
   periods      -poll $loadpoll
-  periods      -exec 30
+  periods      -exec $loadexec
   periods      -timeout 30
 
   stdout phase0.imfile.log
   stderr phase0.imfile.log
+
+  task.exec
+    command      p0tool.sh {$Phase0ImfileFail + 20}
+  end
 
   # success
@@ -76,4 +62,5 @@
   task.exit    default
     echo "phase0 pending imfiles: failure"
+    $Phase0ImfileFail ++
   end
 
@@ -138,4 +125,5 @@
     echo "failure for phase0imfile.pl: $options:0"
     queuepush Phase0Imfiles -replace -key 1 "FAIL $options:0"
+    $Phase0ImfileFail ++
   end
 
