public class CmdUtils
extends java.lang.Object
Windows Command Line or Linux Terminal utilities
| Constructor and Description |
|---|
CmdUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
excute(java.lang.String command,
int timeout,
java.util.concurrent.TimeUnit timeUnit) |
public static java.lang.String excute(java.lang.String command,
int timeout,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.Exception
command - to be executedtimeout - of the commandtimeUnit - of the timeoutjava.lang.Exception - in case anything went down