public final class SystemCommand
extends java.lang.Thread
| Modifier and Type | Method and Description |
|---|---|
static CommandOutput |
bash(java.lang.String command)
Have the command executed via a bash interpreter
|
static CommandOutput |
bash(java.lang.String command,
boolean bRedirectStderr)
Have the command executed via a bash interpreter
|
static CommandOutput |
executeCommand(java.util.List<java.lang.String> command)
Execute the given command
|
static CommandOutput |
executeCommand(java.util.List<java.lang.String> command,
boolean bRedirectStderr)
Execute the given command, optionally redirecting the stderr to stdout
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic static CommandOutput executeCommand(java.util.List<java.lang.String> command)
command - to executenull if any problempublic static CommandOutput executeCommand(java.util.List<java.lang.String> command, boolean bRedirectStderr)
command - command to executebRedirectStderr - if true then stderr will be mangled with stdoutnull if there was a problempublic static CommandOutput bash(java.lang.String command)
command - public static CommandOutput bash(java.lang.String command, boolean bRedirectStderr)
command - bRedirectStderr -