public class CLIProcessExecutor extends Object
Constructor and Description |
---|
CLIProcessExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
execute(String name,
String[] cmd,
boolean wait)
This method invokes the runtime exec
|
int |
exitValue()
Return the exit value of this process.
|
public void execute(String name, String[] cmd, boolean wait) throws Exception
name
- cmd
- the command to executewait
- if true, wait for process to end.Exception
public int exitValue()
Copyright © 2021. All rights reserved.