public class Exec extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
Exec() |
Modifier and Type | Method and Description |
---|---|
static int |
exec(List<String> command)
Execute the command by using the process builder
|
static int |
exec(List<String> command,
Map<String,String> env,
File dir,
int timeout)
Execute the command by using the process builder
|
static int |
exec(String commandLine,
String[] env,
File dir,
int timeout)
Execute the command by using the Runtime.exec
|
public static int exec(List<String> command) throws IOException
IOException
public static int exec(List<String> command, Map<String,String> env, File dir, int timeout) throws IOException
IOException
public static int exec(String commandLine, String[] env, File dir, int timeout) throws IOException
IOException
Copyright © 2008-2014 Logical Objects. All Rights Reserved.