import subprocess
import os
prefix = os.path.expanduser("~/.bin/kb/")
p = subprocess.Popen([(prefix + "koreball"),(prefix + "/data"),'3'])
views:
39answers:
2
                +1 
                A: 
                
                
              
            It's not clear what you're asking, but if you're looking for the Java equivalent of Popen(), you want Runtime.exec().
                  bobince
                   2010-09-15 11:11:49
                
              
                +4 
                A: 
                
                
              
            Your can try with the Runtime.exec method.
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("myprocess");
The method returns a Process that can be used to:
- Retrieve the process output, input and error streams
- Retrieve the process output code
- Kill the process
- Wait for the end of the process execution
                  Vivien Barousse
                   2010-09-15 11:25:14