Note that for option (a) the commands need to be put into a String array, e.g.,
Process proc = rt.exec(new String[] { "/bin/sh", "-c", "ps -ef | grep firefox" });
// Doesn't work - no output....
Type: Posts; User: jashburn
Note that for option (a) the commands need to be put into a String array, e.g.,
Process proc = rt.exec(new String[] { "/bin/sh", "-c", "ps -ef | grep firefox" });
// Doesn't work - no output....