2011/6/1 Kyle <kellrott@gmail.com>
I'm having some trouble with jython subprocess.

For the example code

import subprocess
p=subprocess.Popen("echo hi", shell=True)
print p.pid

In python I get the process number, in jython I get None.

Jython Version: Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011,
23:12:06) [OpenJDK 64-Bit Server VM (Sun Microsystems Inc.)] on

Am I missing something?


Java is encapsulating the concept of process so that it can used across platforms. We don't have much control on this in Java. Java has a really poor support for everything that is related to process and this why you don't access to the process ids.


My blog and profile (http://pierrethibault.posterous.com)
YouTube page (http://www.youtube.com/user/tubetib)
Twitter (http://twitter.com/pierreth2)