Index: trunk/ippTasks/stack.pro
===================================================================
--- trunk/ippTasks/stack.pro	(revision 19429)
+++ trunk/ippTasks/stack.pro	(revision 19443)
@@ -81,14 +81,16 @@
 
   task.exec
+    $run = stacktool -tosum -limit 20
     if ($DB:n == 0)
       option DEFAULT
-      command stacktool -tosum -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$stackSkycell_DB
-      command stacktool -tosum -limit 20 -dbname $DB:$stackSkycell_DB
+      $run = $run -dbname $DB:$stackSkycell_DB
       $stackSkycell_DB ++
       if ($stackSkycell_DB >= $DB:n) set stackSkycell_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
@@ -204,14 +206,16 @@
 
   task.exec
+    $run = stacktool -pendingcleanuprun -limit 20
     if ($DB:n == 0)
       option DEFAULT
-      command stacktool -pendingcleanuprun -limit 20
     else
       # save the DB name for the exit tasks
       option $DB:$stackCleanup_DB
-      command stacktool -pendingcleanuprun -limit 20 -dbname $DB:$stackCleanup_DB
+      $run = $run -dbname $DB:$stackCleanup_DB
       $stackCleanup_DB ++
       if ($stackCleanup_DB >= $DB:n) set stackCleanup_DB = 0
     end
+    add_poll_args run
+    command $run
   end
 
