public class SystemCommandExecutor extends Object
| Constructor and Description |
|---|
SystemCommandExecutor(List<String> command_information)
Pass in the system command you want to run as a List of Strings, as shown here:
List
|
| Modifier and Type | Method and Description |
|---|---|
int |
executeCommand() |
StringBuilder |
getStandardErrorFromCommand()
Get the standard error (stderr) from the command you just exec'd.
|
StringBuilder |
getStandardOutputFromCommand()
Get the standard output (stdout) from the command you just exec'd.
|
static boolean |
isExecuteableFile(File path_to_cmd_f) |
public SystemCommandExecutor(List<String> command_information)
command_information - The command you want to run.public static boolean isExecuteableFile(File path_to_cmd_f)
public int executeCommand()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic StringBuilder getStandardErrorFromCommand()
public StringBuilder getStandardOutputFromCommand()
Copyright © 2016. All rights reserved.