Package org.opennms.core.utils
Class ProcessExec
- java.lang.Object
-
- org.opennms.core.utils.ProcessExec
-
public class ProcessExec extends Object
ProcessExec class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessExec.PrintInputStream
-
Constructor Summary
Constructors Constructor Description ProcessExec(PrintStream out, PrintStream err)
Constructor for ProcessExec.
-
-
-
Constructor Detail
-
ProcessExec
public ProcessExec(PrintStream out, PrintStream err)
Constructor for ProcessExec.
- Parameters:
out
- aPrintStream
object.err
- aPrintStream
object.
-
-
Method Detail
-
exec
public int exec(String[] cmd) throws IOException, InterruptedException
exec
- Parameters:
cmd
- an array ofString
objects.- Returns:
- a int.
- Throws:
IOException
- if any.InterruptedException
- if any.
-
-