Class OsCommandExecutor
java.lang.Object
com.michelin.cert.redscan.utils.system.OsCommandExecutor
Os Command Executor.
- Author:
- Maxime ESCOURBIAC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute securely a process.Execute securely a process.Execute securely a process.Execute securely a process.
-
Constructor Details
-
OsCommandExecutor
public OsCommandExecutor()
-
-
Method Details
-
execute
Execute securely a process.- Parameters:
command- Command to execute.- Returns:
- The StreamGobbler of the run.
-
execute
Execute securely a process.- Parameters:
command- Command to execute.flushInput- True if the stream read by the application need to be closed for the execution.- Returns:
- The StreamGobbler of the run.
-
execute
Execute securely a process.- Parameters:
command- Command to execute.executionDir- Execution directory.- Returns:
- The StreamGobbler of the run.
-
execute
Execute securely a process.- Parameters:
command- Command to execute.executionDir- Execution directory.flushInput- True if the stream read by the application need to be closed for the execution.- Returns:
- The StreamGobbler of the run.
-