public class Background
extends java.lang.Object
| Constructor and Description |
|---|
Background() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exec(java.lang.String[] cmd)
Execute the command (and its args, ala Runtime.exec), sending the
output and error streams to the void.
|
static void |
exec(java.lang.String[] cmd,
java.io.File outFile,
boolean appendOut,
java.io.File errFile,
boolean appendErr)
Execute a command (and its args, ala Runtime.exec)
|
static void |
main(java.lang.String[] args) |
public static void exec(java.lang.String[] cmd)
throws java.io.IOException
cmd - The command and args.java.io.IOException - Any.public static void exec(java.lang.String[] cmd,
java.io.File outFile,
boolean appendOut,
java.io.File errFile,
boolean appendErr)
throws java.io.IOException
cmd - The command and args.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 filejava.io.IOException - Any.public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception