Interface CommandRunner
- All Known Implementing Classes:
CommandRunnerUnix
public interface CommandRunner
-
Method Summary
Modifier and TypeMethodDescriptionintrunCommand(String command, String... arguments) runCommandWithOutput(String command, String... arguments) Runs a command with the given optional arguments and returns the stdio as result.
-
Method Details
-
runCommandWithOutput
String runCommandWithOutput(String command, String... arguments) throws IOException, InterruptedException Runs a command with the given optional arguments and returns the stdio as result. Methods blocks until command has finished- Parameters:
command-arguments-- Returns:
- Standard output of the command
- Throws:
IOExceptionInterruptedException
-
runCommand
- Throws:
IOExceptionInterruptedException
-