Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
byte[] bo = new byte;
String[] cmd = {"bash", "-c", "echo $PPID"};
Process p = Runtime.getRuntime().exec(cmd);
p.getInputStream().read(bo);
System.out.println(new String(bo));
Démarrage du job pid a 09:52 17/05/2010.
connecting to socket on port 3359
connected
6461