Package | Description |
---|---|
com.peterphi.std.system.exec |
Modifier and Type | Method | Description |
---|---|---|
static Execed |
Exec.appAs(String as,
Iterable<String> command) |
Runs a command, optionally executing as a different user (eg root)
|
static Execed |
Exec.appAs(String as,
String... command) |
Runs a command, optionally executing as a different user (eg root)
|
static Execed |
Exec.rootUtility(Iterable<String> command) |
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
|
static Execed |
Exec.rootUtility(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(Iterable<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(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(String as,
Iterable<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(String as,
String... command) |
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
|
Copyright © 2018. All rights reserved.