Package org.frankframework.util
Class ProcessUtil
java.lang.Object
org.frankframework.util.ProcessUtil
Process execution utilities.
- Since:
- 4.8
- Author:
- Gerrit van Brakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
executeCommand
(String command) static String
executeCommand
(List<String> command, int timeout) Execute a command as a process in the operating system.protected static String
getCommandLine
(List<String> command) splitUpCommandString
(String command)
-
Constructor Details
-
ProcessUtil
public ProcessUtil()
-
-
Method Details
-
getCommandLine
-
splitUpCommandString
-
executeCommand
- Throws:
SenderException
-
executeCommand
public static String executeCommand(List<String> command, int timeout) throws TimeoutException, SenderException Execute a command as a process in the operating system. Timeout is passed in seconds, or 0 to wait indefinitely until the process ends- Throws:
TimeoutException
SenderException
-