- java.lang.Object
-
- org.jline.utils.ExecHelper
-
public final class ExecHelper extends Object
Helper methods for running unix commands.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
exec(boolean redirectInput, String... cmd)
static String
waitAndCapture(Process p)
-
-
-
Method Detail
-
exec
public static String exec(boolean redirectInput, String... cmd) throws IOException
- Throws:
IOException
-
waitAndCapture
public static String waitAndCapture(Process p) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-