Index: trunk/ippTools/doc/p2tools.txt
===================================================================
--- trunk/ippTools/doc/p2tools.txt	(revision 5881)
+++ trunk/ippTools/doc/p2tools.txt	(revision 6015)
@@ -2,10 +2,14 @@
 Phase 2 pipeline tools:
 
-p2define -time (start) (stop) -camera (camera) -region (ra,dec) (ra,dec)
+p2search -quick 
+  * search for images which match in raw.exp,raw.imfiles
+  * output in format which can be used by ppImage pantasks script
+
+p2search -define [options]
   * input: searches mddb:raw_exposures,raw_images
   * output: updates mddb:P2_exposures_pending,P2_images_pending
   * alternative output: identical to p2pending
  
-p2pending 
+p2search -pending 
   * input: searches mddb:P2_exposures_pending,P2_images_pending
   * output: Nlines consisting of:
@@ -13,12 +17,17 @@
   * options: ?
 
-(place both of these in a single user tool, p2search)
+p2search -update
+  * examine the imfiles and identify any comleted exposures
 
-p2search -quick [options]
-p2search -define [options]
-p2search -pending [options]
-p2search -update [options]
+p2search -done
+  * add completed exposures to the p2.done tables
+  * remove corresponding entries from the p2.pending table
+  * send new entry to the pending p3 table
 
 ppImage file://path/filename file://path/outroot -recipe (recipe) 
 ppImage neb://nebname neb://outroot -recipe (recipe)
 
+restriction options:
+  -time (start) (stop)
+  -camera (camera) 
+  -region (ra,dec) (ra,dec)
