Mercurial > repos > melissacline > start_xena
changeset 9:ed83452c5f8e
Fixed a couple errors in the invoking script
author | melissacline |
---|---|
date | Tue, 23 Sep 2014 21:03:21 -0700 |
parents | c1388ebe8662 |
children | 1374011ce9bc |
files | startXena.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/startXena.py Tue Sep 23 20:39:18 2014 -0700 +++ b/startXena.py Tue Sep 23 21:03:21 2014 -0700 @@ -34,14 +34,14 @@ xenaJarPath = os.path.join(jarPath, "xena.jar") xenaBaseDir = os.getenv("XENA_BASE_DIR", "~") xenaPort = os.getenv("XENA_PORT", 1236) - cmdline = "java -jar %s -r %s/files -d %s/db -t %s/tmp -p %d -H 0.0.0.0" % (xenaJarPath, xenaBaseDir, + cmdline = "java -jar %s -r %s/files -d %s/db -t %s/tmp -p %s -H 0.0.0.0" % (xenaJarPath, xenaBaseDir, xenaBaseDir, xenaBaseDir, xenaPort) for ii in range(1,len(sys.argv)): cmdline = "%s %s" % (cmdline, sys.argv[ii]) - cmd += " &" + cmdline += " &" + subprocess.call(cmdline, shell=True) print "Xena VM invoked with command", cmdline - subprocess.call(cmd, shell=True) if __name__ == '__main__': main( )