I'm creating subprocesses in this way:
String command = new String("some_program");
Process p = Runtime.getRuntime().exec(command);
How I can get that subprocess id?
P.S. I'm working on Linux.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…