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 classProcessExec.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- aPrintStreamobject.err- aPrintStreamobject.
-
-
Method Detail
-
exec
public int exec(String[] cmd) throws IOException, InterruptedException
exec
- Parameters:
cmd- an array ofStringobjects.- Returns:
- a int.
- Throws:
IOException- if any.InterruptedException- if any.
-
-