Class CommandRunnerUnix
java.lang.Object
org.eblocker.server.common.system.unix.CommandRunnerUnix
- All Implemented Interfaces:
CommandRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintrunCommand(String command, String... arguments) runCommandWithOutput(String command, String... arguments) Runs a single command and returns the stdout as result
-
Constructor Details
-
CommandRunnerUnix
-
-
Method Details
-
runCommandWithOutput
public String runCommandWithOutput(String command, String... arguments) throws IOException, InterruptedException Runs a single command and returns the stdout as result- Specified by:
runCommandWithOutputin interfaceCommandRunner- Returns:
- Standard output of the command
- Throws:
IOExceptionInterruptedException
-
runCommand
- Specified by:
runCommandin interfaceCommandRunner- Throws:
IOExceptionInterruptedException
-