Index: trunk/ippTasks/detrend.norm.pro
===================================================================
--- trunk/ippTasks/detrend.norm.pro	(revision 19089)
+++ trunk/ippTasks/detrend.norm.pro	(revision 19465)
@@ -137,14 +137,16 @@
 
   task.exec
+    $run = dettool -tonormalizedstat
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -tonormalizedstat -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detPendingNormStatImfile_DB
-      command dettool -tonormalizedstat -limit 20 -dbname $DB:$detPendingNormStatImfile_DB
+      $run = $run -dbname $DB:$detPendingNormStatImfile_DB
       $detPendingNormStatImfile_DB ++
       if ($detPendingNormStatImfile_DB >= $DB:n) set detPendingNormStatImfile_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -247,14 +249,16 @@
 
   task.exec
+    $run = dettool -tonormalize
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -tonormalize -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detPendingNormImfile_DB
-      command dettool -tonormalize -limit 20 -dbname $DB:$detPendingNormImfile_DB
+      $run = $run -dbname $DB:$detPendingNormImfile_DB
       $detPendingNormImfile_DB ++
       if ($detPendingNormImfile_DB >= $DB:n) set detPendingNormImfile_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -360,14 +364,16 @@
 
   task.exec
+    $run = dettool -tonormalizedexp
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -tonormalizedexp -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detPendingNormExp_DB
-      command dettool -tonormalizedexp -limit 20 -dbname $DB:$detPendingNormExp_DB
+      $run = $run -dbname $DB:$detPendingNormExp_DB
       $detPendingNormExp_DB ++
       if ($detPendingNormExp_DB >= $DB:n) set detPendingNormExp_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -469,14 +475,16 @@
 
   task.exec
+    $run = dettool -pendingcleanup_normalizedstat
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -pendingcleanup_normalizedstat -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detCleanupNormStatImfile_DB
-      command dettool -pendingcleanup_normalizedstat -limit 20 -dbname $DB:$detCleanupNormStatImfile_DB
+      $run = $run -dbname $DB:$detCleanupNormStatImfile_DB
       $detCleanupNormStatImfile_DB ++
       if ($detCleanupNormStatImfile_DB >= $DB:n) set detCleanupNormStatImfile_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -573,14 +581,16 @@
 
   task.exec
+    $run = dettool -pendingcleanup_normalizedimfile
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -pendingcleanup_normalizedimfile -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detCleanupNormImfile_DB
-      command dettool -pendingcleanup_normalizedimfile -limit 20 -dbname $DB:$detCleanupNormImfile_DB
+      $run = $run -dbname $DB:$detCleanupNormImfile_DB
       $detCleanupNormImfile_DB ++
       if ($detCleanupNormImfile_DB >= $DB:n) set detCleanupNormImfile_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -678,14 +688,16 @@
 
   task.exec
+    $run = dettool -pendingcleanup_normalizedexp
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -pendingcleanup_normalizedexp -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detCleanupNormExp_DB
-      command dettool -pendingcleanup_normalizedexp -limit 20 -dbname $DB:$detCleanupNormExp_DB
+      $run = $run -dbname $DB:$detCleanupNormExp_DB
       $detCleanupNormExp_DB ++
       if ($detCleanupNormExp_DB >= $DB:n) set detCleanupNormExp_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
