I\'m doing something like this in Java right now
Process p = Runtime.getRuntime().exec(\"ping -n 1 -w 100 127.0.0.1\")
How can I read the w
next line of code:
int returnCode = p.waitFor();
This blocks until process is complete. You can also use the Process.exitValue() method, if you don't want to block. See Java6 Process class API doc