Index: trunk/ippTasks/lap.pro
===================================================================
--- trunk/ippTasks/lap.pro	(revision 31460)
+++ trunk/ippTasks/lap.pro	(revision 31480)
@@ -17,7 +17,11 @@
 
 macro lap.show.books
+    echo "lapNewRuns"
     book listbook lapNewRuns
+    echo "lapRunRuns"
     book listbook lapRunRuns
+    echo "lapDoneRuns"
     book listbook lapDoneRuns
+    echo "lapFullRuns"
     book listbook lapFullRuns
 end
@@ -36,10 +40,4 @@
       active true
     end
-    task lap.cleanup.load
-      active true
-    end
-    task lap.cleanup.run
-      active true
-    end
 end
 
@@ -57,8 +55,17 @@
       active false
     end
-    task lap.cleanup.load
-      active false
-    end
-    task lap.cleanup.run
+end
+
+macro lap.debug.mode
+    task lap.initial.load
+      active true
+    end
+    task lap.initial.run
+      active false
+    end
+    task lap.monitor.load
+      active true
+    end
+    task lap.monitor.run
       active false
     end
@@ -181,4 +188,5 @@
   periods      -exec $LOADEXEC
   periods      -timeout 600
+  active       false
 # This can probably be increased and spread over hosts in the future.
   npending     1            
@@ -205,13 +213,15 @@
     book getword lapNewRuns $lapNewPageName dbname -var DBNAME
 
+    option $LAP_ID
+
     $run = lap_science.pl --chip_mode --dbname $DBNAME --lap_id $LAP_ID
-
-    command $run
-
-  end
-
-  # success
-  task.exit  0
-#    book delpage lapNewRuns $options:0
+    
+    command $run
+
+  end
+
+  # success
+  task.exit  0
+     book delpage lapNewRuns $options:0
 #    ipptool2book stdout lapNewRuns -uniq -key lap_id
 
@@ -297,4 +307,5 @@
   periods      -exec $LOADEXEC
   periods      -timeout 600
+  active       false
 # This can probably be increased and spread over hosts in the future.
   npending     1            
@@ -323,4 +334,5 @@
     book getword lapRunRuns $lapRunPageName dbname -var DBNAME
 
+    option $LAP_ID
     $run = lap_science.pl --monitor_mode --dbname $DBNAME --lap_id $LAP_ID
 
@@ -331,5 +343,5 @@
   # success
   task.exit  0
-#    book delpage lapRunRuns $options:0
+    book delpage lapRunRuns $options:0
 #    ipptool2book stdout lapRunRuns -uniq -key lap_id
 
