public class LinuxShellExecutor extends Object
| Constructor and Description |
|---|
LinuxShellExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static String |
execute(boolean withResponse,
String... command)
Execute the given commands and return the result.
|
static String |
toString(InputStream is)
Converts the given InputStream to a string.
|
public static String execute(boolean withResponse, String... command) throws IOException, InterruptedException
withResponse - the with responsecommand - the command(s)IOException - Signals that an I/O exception has occurred.InterruptedException - the interrupted exceptionpublic static String toString(InputStream is) throws IOException
is - the isIOException - Signals that an I/O exception has occurred.Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.