我正在以这种方式创建子进程:
String command = new String("some_program"); Process p = Runtime.getRuntime().exec(command);
我如何获得该子进程ID?
PS我在Linux上工作.
java linux process
java ×1
linux ×1
process ×1