- java.lang.Object
-
- jnr.posix.util.ExecIt
-
public class ExecIt extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected POSIXHandlerhandler
-
Constructor Summary
Constructors Constructor Description ExecIt(POSIXHandler handler)Creates a new instance of ShellLauncher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Processrun(String... args)intrunAndWait(OutputStream output, OutputStream error, String... args)intrunAndWait(OutputStream output, String... args)intrunAndWait(String... args)
-
-
-
Field Detail
-
handler
protected final POSIXHandler handler
-
-
Constructor Detail
-
ExecIt
public ExecIt(POSIXHandler handler)
Creates a new instance of ShellLauncher- Parameters:
handler- thePOSIXHandlerto use
-
-
Method Detail
-
runAndWait
public int runAndWait(String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
runAndWait
public int runAndWait(OutputStream output, String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
runAndWait
public int runAndWait(OutputStream output, OutputStream error, String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
run
public Process run(String... args) throws IOException
- Throws:
IOException
-
-