Index: trunk/ippTasks/detrend.reject.pro
===================================================================
--- trunk/ippTasks/detrend.reject.pro	(revision 18607)
+++ trunk/ippTasks/detrend.reject.pro	(revision 19465)
@@ -52,14 +52,16 @@
 
   task.exec
+    $run = dettool -todetrunsummary
     if ($DB:n == 0)
       option DEFAULT
-      command dettool -todetrunsummary -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$detRejectExp_DB
-      command dettool -todetrunsummary -limit 20 -dbname $DB:$detRejectExp_DB
+      $run = $run -dbname $DB:$detRejectExp_DB
       $detRejectExp_DB ++
       if ($detRejectExp_DB >= $DB:n) set detRejectExp_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
