Index: /trunk/doc/ipptools/p4tool.txt
===================================================================
--- /trunk/doc/ipptools/p4tool.txt	(revision 11824)
+++ /trunk/doc/ipptools/p4tool.txt	(revision 11825)
@@ -57,21 +57,33 @@
 Give me a list of all skycells which could have subtractions performed
 (more than two warps):
-	p5tool -query (some search parameters, including RA, Dec, seeing)
+#	p5tool -query (some search parameters, including RA, Dec, seeing)
 
 Register an exposure for subtraction processing.  We need to specify which warp
 is the input and which is the template.
-	p5tool -definerun -skycell <str> -input_p4_id <s32> -template_p4_id <s32>
+
+	p5tool -definerun -workdir <str>
+
+    p5tool -addinputscfile -p5_id <s32> -p4_id <s32> -skycell_id <str> -tess_id <str> -kinds <str> [-template]
+
+	p5tool -updaterun -p5_id <s32> -state run
 
 Give me all skycells that need to be subtracted:
-        p5tool -pending
+        p5tool -todiffscfile
 
 Do the subtraction for each skycell:
         phase5_subtract.pl --p5_id <s32> --in_uri <str> --template_uri <str>
 {
+        p5tool -inputscfile -p5_id <s32> -p4_id <s32> 
+
         Do the subtraction:
                 pois in_uri.fits template_uri sub.fits <other stuff>
 
+        register the resulting difference image:
+
+        p5tool -adddiffscfile -p5_id <s32> -skycell_id <str> -tess_id <str>
+-uri <str> ...
+
         Register the subtraction as done:
-                p5tool -done -p5_id <s32> -uri <str>
+                p5tool -updaterun -p5_id <s32> -state stop
 }
 
@@ -189,5 +201,7 @@
 
 Register skycells for combination processing:
-	p6tool -definerun -skycell <stR> -p4_id <s32> -p4_id <s32> -p4_id <s32>
+	p6tool -definerun -skycell <stR>
+
+	p6tool -addinputscfile -p4_id <s32> -skycell_id <str> -tess_id <str>  -p4_id <s32>
 
 Give me all pending operations
