Shell.Empty, Shell.Fake, Shell.Plain, Shell.Safe, Shell.Verbose
Modifier and Type | Method and Description |
---|---|
int |
exec(String command,
InputStream stdin,
OutputStream stdout,
OutputStream stderr)
Execute and return exit code.
|
public Safe(Shell shell)
shell
- Original shellpublic int exec(String command, InputStream stdin, OutputStream stdout, OutputStream stderr) throws IOException
Shell
exec
in interface Shell
command
- Commandstdin
- Stdin (will be closed)stdout
- Stdout (will be closed)stderr
- Stderr (will be closed)IOException
- If failsCopyright © 2012–2018 jcabi.com. All rights reserved.