public class NativeSystemCall extends Object
| Constructor and Description |
|---|
NativeSystemCall() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exec(boolean wait,
String command,
String... parms)
Execute the given system command
|
static int |
execFromPath(String command,
String[] parms,
ShellPrintWriter out,
DirectoryResource path)
Execute a native system command as if it were run from the given path.
|
public static int execFromPath(String command, String[] parms, ShellPrintWriter out, DirectoryResource path) throws IOException
command - the system command to executeparms - the command parametersout - a print writer to which command output will be streamedpath - the path from which to execute the commandIOExceptionpublic static void exec(boolean wait,
String command,
String... parms)
throws IOException
IOExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.