Index: /trunk/ippTasks/p0tool.sh
===================================================================
--- /trunk/ippTasks/p0tool.sh	(revision 10638)
+++ /trunk/ippTasks/p0tool.sh	(revision 10638)
@@ -0,0 +1,2 @@
+#!/usr/bin/sh
+p0tool -pendingimfile -simple | head -n 20
Index: /trunk/ippTasks/phase0.pro
===================================================================
--- /trunk/ippTasks/phase0.pro	(revision 10637)
+++ /trunk/ippTasks/phase0.pro	(revision 10638)
@@ -15,13 +15,33 @@
 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
+
 # select images ready for phase0 analysis
 # new entries are added to queue Phase0Imfiles
 # compare the new list with the ones already selected
 task	       phase0.imfile.load
-  command      p0tool -pendingimfile -simple
+#  command      p0tool -pendingimfile -simple
+  command      /home/price/ipp/ippTasks/p0tool.sh
   host         local
 
   periods      -poll $loadpoll
-  periods      -exec $loadexec
+  periods      -exec 30
   periods      -timeout 30
 
@@ -38,6 +58,7 @@
     # only add entries which don't exist in queue
     queuesize stdout -var Nqueue
-    for i 0 $Nqueue
+    for i 0 {$Nqueue << 20}
       queuepop stdout -var line
+      echo $line
       list word -split $line
       $EXP_TAG  = $word:0
@@ -98,7 +119,6 @@
     end
 
-    $LOG_DIR = `dirname $URI`
-    stdout $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log
-    stderr $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log
+    stdout $WORKDIR/$EXP_TAG.$CLASS_ID.log
+    stderr $WORKDIR/$EXP_TAG.$CLASS_ID.log
 
     # create the command line
@@ -205,7 +225,6 @@
     $EXP_TAG   = $word:0
 
-    # XXX add $WORKDIR/$LOG_DIR
-    stdout $EXP_TAG.log
-    stderr $EXP_TAG.log
+    stdout $WORKDIR/$EXP_TAG.log
+    stderr $WORKDIR/$EXP_TAG.log
 
     # specify choice of remote host:(need to choose based on chips)
