Index: trunk/ippTasks/summit.copy.pro
===================================================================
--- trunk/ippTasks/summit.copy.pro	(revision 21464)
+++ trunk/ippTasks/summit.copy.pro	(revision 21478)
@@ -50,4 +50,7 @@
       active true
   end
+  task summit.advance
+      active true
+  end
 end
 
@@ -72,4 +75,7 @@
   end
   task pztool.clearfault
+      active false
+  end
+  task summit.advance
       active false
   end
@@ -81,4 +87,5 @@
 $pztoolPendingImfile_DB = 0
 $pztoolClearFault_DB = 0
+$pztoolAdvance_DB = 0;
 
 # build a book of datastores to poll for data
@@ -474,2 +481,45 @@
     end
 end
+
+# promote exposures for which all imfiles have been copied
+task	       summit.advance
+  host         local
+
+  periods      -poll $LOADPOLL
+  periods      -exec $LOADEXEC
+  periods      -timeout 30
+  npending     1
+
+  stdout NULL
+  stderr $LOGDIR/summit.advance.log
+
+  task.exec
+    $run = pztool -advance
+    if ($DB:n == 0)
+      option DEFAULT
+    else
+      # save the DB name for the exit tasks
+      option $DB:$pztoolAdvance_DB
+      $run = $run -dbname $DB:$pztoolAdvance_DB
+      $pztoolAdvance_DB ++
+      if ($pztoolAdvance_DB >= $DB:n) set pztoolAdvance_DB = 0
+    end
+    add_poll_args run
+    command $run
+  end
+
+  # success
+  task.exit    0
+  end
+
+  # locked list
+  task.exit    default
+    showcommand failure
+  end
+
+  # operation times out?
+  task.exit    timeout
+    showcommand timeout
+  end
+end
+
