public class ProcessFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
Process |
exec(String cmd)
Executes the specified command in a separate process.
|
Process |
exec(String[] cmdarray)
Executes the specified command and arguments in a separate process.
|
Process |
exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process with
the specified environment.
|
Process |
exec(String[] cmdarray,
String[] envp,
String dir)
Executes the specified command and arguments in a separate process with
the specified environment and working directory.
|
Process |
exec(String cmd,
String[] envp)
Executes the specified command in a separate process with the specified
environment.
|
Process |
exec(String cmd,
String[] envp,
String dir)
Executes the specified command in a separate process with the specified
environment and working directory.
|
static ProcessFactory |
getFactory()
get the Process Factory.instance
|
public static ProcessFactory getFactory()
public Process exec(String cmd) throws IOException
cmd - the command to callIOException - if an I/O error occurs.public Process exec(String[] cmdarray) throws IOException
cmdarray - array containing the command to call and its argumentsIOException - if an I/O error occurs.public Process exec(String[] cmdarray, String[] envp) throws IOException
cmdarray - array containing the command to call and its argumentsenvp - array of strings, each element of which has environment
variable settings in format name=value.IOException - if an I/O error occurs.public Process exec(String cmd, String[] envp) throws IOException
cmd - the command to callenvp - array of strings, each element of which has environment
variable settings in format name=value.IOException - if an I/O error occurs.public Process exec(String cmd, String[] envp, String dir) throws IOException
cmd - the command to callenvp - array of strings, each element of which has environment
variable settings in format name=value.dir - the working directory of the subprocessIOException - if an I/O error occurs.public Process exec(String[] cmdarray, String[] envp, String dir) throws IOException
cmdarray - array containing the command to call and its argumentsenvp - array of strings, each element of which has environment
variable settings in format name=value.dir - the working directory of the subprocessIOException - if an I/O error occurs.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}