public final class ExecHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
exec(boolean redirectInput,
String... cmd) |
static String |
waitAndCapture(Process p) |
public static String exec(boolean redirectInput, String... cmd) throws IOException
IOException
public static String waitAndCapture(Process p) throws IOException, InterruptedException
IOException
InterruptedException