Index: trunk/ippToPsps/jython/ipptopsps.py
===================================================================
--- trunk/ippToPsps/jython/ipptopsps.py	(revision 32000)
+++ trunk/ippToPsps/jython/ipptopsps.py	(revision 32007)
@@ -1,5 +1,5 @@
 #!/usr/bin/env jython
 
-# The starting point for ippTopsps. Run with TODO....
+# The starting point for ippTopsps. See usage below.
 
 import time
@@ -11,4 +11,6 @@
 from gpc1db import Gpc1Db
 from ipptopspsdb import IppToPspsDb
+
+from initbatch import InitBatch
 from stackbatch import StackBatch
 from detectionbatch import DetectionBatch
@@ -69,8 +71,14 @@
 '''
 
-if len(sys.argv) > 1: CONFIG  = sys.argv[1]
+if len(sys.argv) > 1: CONFIG = sys.argv[1]
 else:
-    print "** Usage: " + sys.argv[0] + " <configPath>"
+    print "** Usage: " + sys.argv[0] + " <configPath> [init]"
     sys.exit(1)
+
+if len(sys.argv) > 2 and sys.argv[2] == "init":
+    QUEUE_IN = 1
+    print "JKJKJKJKJK\n\n"
+else:
+    QUEUE_IN = 0
 
 # open config file
@@ -98,6 +106,6 @@
 
 # prompt user: FORCE and PUBLISH is a dangerous combination
-if FORCE and PUBLISH:
-   response = raw_input("Are you sure you want to publish data with the 'force' option enabled (y/n)? ")
+if FORCE and PUBLISH and not QUEUE_IN:
+   response = raw_input("*** Are you sure you want to publish data with the 'force' option enabled (y/n)? ")
    if response != "y": sys.exit(1)
 
@@ -125,4 +133,10 @@
 
     # queue all items for all batch types, sequentially
+    if QUEUE_IN:
+       batch = InitBatch(logger, CONFIG, configDoc, gpc1Db, ippToPspsDb)
+       batch.printMe()
+       batch.run()
+       break;
+
     if QUEUE_P2: queueItems("P2")
     if QUEUE_ST: queueItems("ST")
