I\'m creating subprocesses in this way:
String command = new String(\"some_program\"); Process p = Runtime.getRuntime().exec(command);
How
From here
public static void main(String[] args) throws IOException { byte[] bo = new byte[100]; String[] cmd = {"bash", "-c", "echo $PPID"}; Process p = Runtime.getRuntime().exec(cmd); p.getInputStream().read(bo); System.out.println(new String(bo)); }