public class Background extends Object
Constructor and Description |
---|
Background() |
Modifier and Type | Method and Description |
---|---|
static void |
exec(String[] cmd)
Execute the command (and its args, ala Runtime.exec), sending the
output && error streams to the void.
|
static void |
exec(String[] cmd,
File outFile,
boolean appendOut,
File errFile,
boolean appendErr)
Execute a command (and its args, ala Runtime.exec)
|
static void |
main(String[] args) |
public static void exec(String[] cmd) throws IOException
IOException
public static void exec(String[] cmd, File outFile, boolean appendOut, File errFile, boolean appendErr) throws IOException
outFile
- File to send standard out from the process toappendOut
- If true, append the file with standard out,
else truncate or create a new fileerrFile
- File to send standard err from the process toappendErr
- If true, append the file with standard error,
else truncate or create a new fileIOException