public class Executor extends Object
Executor exec = new Executor()
exec.execute("ls -l")
String result = exec.getOut()
| Constructor and Description |
|---|
Executor() |
| Modifier and Type | Method and Description |
|---|---|
int |
exec(String command) |
int |
exec(String[] cmdarray) |
int |
exec(String[] cmdarray,
String[] envp) |
int |
exec(String[] cmdarray,
String[] envp,
File dir) |
int |
exec(String command,
String[] envp) |
int |
exec(String command,
String[] envp,
File dir) |
String |
getError() |
String |
getOut() |
Copyright © 2017. All rights reserved.