| Package | Description |
|---|---|
| com.peterphi.std.system.exec |
| Modifier and Type | Method and Description |
|---|---|
static Execed |
Exec.appAs(java.lang.String as,
java.lang.Iterable<java.lang.String> command)
Runs a command, optionally executing as a different user (eg root)
|
static Execed |
Exec.appAs(java.lang.String as,
java.lang.String... command)
Runs a command, optionally executing as a different user (eg root)
|
static Execed |
Exec.rootUtility(java.lang.Iterable<java.lang.String> command)
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
|
static Execed |
Exec.rootUtility(java.lang.String... command)
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
|
static Execed |
Execed.spawn(Exec e) |
Execed |
Exec.start()
Launches the process, returning a handle to it for IO ops, etc.
The finish condition for the OutputProcess is that all processes outputting to standard out must be complete before proceeding |
static Execed |
Exec.utility(java.lang.Iterable<java.lang.String> command)
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
|
static Execed |
Exec.utility(java.lang.String... command)
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
|
static Execed |
Exec.utilityAs(java.lang.String as,
java.lang.Iterable<java.lang.String> command)
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
|
static Execed |
Exec.utilityAs(java.lang.String as,
java.lang.String... command)
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
|
Copyright © 2014. All Rights Reserved.