Index: trunk/ippTasks/phase0.pro
===================================================================
--- trunk/ippTasks/phase0.pro	(revision 9032)
+++ trunk/ippTasks/phase0.pro	(revision 9081)
@@ -11,4 +11,7 @@
 if ($?network == 0)
   $network = 1
+end
+if ($?parallel == 0)
+  $parallel = 0
 end
 
@@ -59,6 +62,6 @@
 task	       phase0.imfile.process
   periods      -poll 0.5
-  periods      -exec 1.0
-  periods      -timeout 5
+  periods      -exec 1
+  periods      -timeout 60
 
   task.exec
@@ -80,17 +83,11 @@
     list word -split $line
 
-    # specify choice of remote host:
-    # 'anyhost' specifies random remote host
-    # if we needed to specify a host explicitly, use a command like
-    # one of the following.  the -required forces execution on the
-    # named host, and blocks the task until the host is available
-    # host kiawe
-    # host alala -required 
-    ## XXX need to determine the appropriate host
-    # host anyhost
-    host local
-    echo "running phase0.imfile.process"
-
-    echo "setting stdout, stderr: $word:1.$word:3.log"
+    # specify choice of remote host:(need to choose based on chips)
+    if ($parallel)
+      host anyhost
+    else
+      host local
+    end
+
     # do something better with this output target
     stdout $word:0.$word:2.log
@@ -98,7 +95,5 @@
 
     # create the command line
-    echo "setting options $line"
     options "$line"
-
     echo command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
     command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
@@ -113,4 +108,5 @@
   # default exit status
   task.exit    default
+    echo "failure for phase0imfile.pl: $options:0"
     queuepush Phase0PendingImfiles -replace -key 1 "FAIL $options:0"
   end
@@ -118,5 +114,6 @@
   # operation times out?
   task.exit    timeout
-    queuepush Phase0PendingImfiles -replace -key 1 "FAIL $options:0"
+    echo "timeout for phase0imfile.pl: $options:0"
+    queuepush Phase0PendingImfiles -replace -key 1 "TIMEOUT $options:0"
   end
 end
@@ -139,8 +136,4 @@
   stdout phase0.exp.log
   stderr phase0.exp.log
-
-  task.exec
-    break
-  end
 
   # success
@@ -196,21 +189,18 @@
 
     # do something better with this output target
-    stdout $word:1.log
-    stderr $word:1.log
-
-    # specify choice of remote host:
-    # 'anyhost' specifies random remote host
-    # if we needed to specify a host explicitly, use a command like
-    # one of the following.  the -required forces execution on the
-    # named host, and blocks the task until the host is available
-    # host kiawe
-    # host alala -required 
-    ## XXX need to determine the appropriate host
-    host local
-    # host anyhost
+    stdout $word:0.log
+    stderr $word:0.log
+
+    # specify choice of remote host:(need to choose based on chips)
+    if ($parallel)
+      host anyhost
+    else
+      host local
+    end
 
     # create the command line
     options "$line"
-    command phase0exp.pl $word:1
+    echo command phase0exp.pl $word:0
+    command phase0exp.pl $word:0
   end
 
@@ -228,5 +218,7 @@
   # operation times out?
   task.exit    timeout
-    queuepush Phase0PendingExposures -replace -key 1 "FAIL $options:0"
-  end
-end
+    queuepush Phase0PendingExposures -replace -key 1 "TIMEOUT $options:0"
+  end
+end
+
+## XXX add a global path to output files  
