Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 11323)
+++ trunk/ippTasks/detrend.process.pro	(revision 11336)
@@ -41,4 +41,5 @@
   periods      -exec $loadexec
   periods      -timeout 30
+  npending     1
 
   stdout NULL
@@ -154,4 +155,5 @@
   periods      -exec $loadexec
   periods      -timeout 30
+  npending     1
 
   stdout NULL
@@ -160,4 +162,5 @@
   task.exec
     if ($DB:n == 0)
+      option DEFAULT
       command dettool -toprocessedexp -limit 20
     else
@@ -173,9 +176,5 @@
   task.exit    0
     # convert 'stdout' to book format
-    if ($options:n == 0)
-      ipptool2book stdout detPendingProcessedExp -key det_id:iteration:exp_tag -uniq
-    else
-      ipptool2book stdout detPendingProcessedExp -key det_id:iteration:exp_tag -uniq -setword DBNAME $options:0
-    end
+    ipptool2book stdout detPendingProcessedExp -key det_id:iteration:exp_tag -uniq -setword dbname $options:0
     if ($VERBOSE > 2)
       book listbook detPendingProcessedExp
