Your Friend wrote: > result = os.popen( "%s/bin/java com.foo.service.JavaService %s" % ( > JAVA_HOME, FILE_TO_CREATE ) ) > > print > result.readlines() > I find that subprocess.Popen works _better_ for this kind of thing.
import os from subprocess import Popen outfile = open("out.txt","w") errfile = open("err.txt","w") pid = Popen([os.environ["JAVA_HOME"]+/bin/java, "-classpath", ".", "MyJavaExecutable"], stdout=outfile, stderr=errfile) . . /rune -- http://mail.python.org/mailman/listinfo/python-list