public class SystemCommandExecutor
extends java.lang.Object
Constructor | Description |
---|---|
SystemCommandExecutor(java.util.List<java.lang.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 | Description |
---|---|---|
int |
executeCommand() |
|
java.lang.StringBuilder |
getStandardErrorFromCommand() |
Get the standard error (stderr) from the command you just exec'd.
|
java.lang.StringBuilder |
getStandardOutputFromCommand() |
Get the standard output (stdout) from the command you just exec'd.
|
static boolean |
isExecuteableFile(java.io.File path_to_cmd_f) |
public SystemCommandExecutor(java.util.List<java.lang.String> command_information)
command_information
- The command you want to run.public static boolean isExecuteableFile(java.io.File path_to_cmd_f)
public int executeCommand() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.lang.StringBuilder getStandardErrorFromCommand()
public java.lang.StringBuilder getStandardOutputFromCommand()