Class JavaExecuteScript
java.lang.Object
fr.gouv.vitam.ingest.external.common.util.JavaExecuteScript
Class JavaExecuteScript used to execute the shell script in java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand
(String cmd, String arg, long timeoutScanDelay) Return status when execute the shell script scan-clamav.sh for scanning the file
-
Constructor Details
-
JavaExecuteScript
public JavaExecuteScript()
-
-
Method Details
-
executeCommand
public ExecutionOutput executeCommand(String cmd, String arg, long timeoutScanDelay) throws JavaExecuteScriptException Return status when execute the shell script scan-clamav.sh for scanning the file- Parameters:
cmd
- the command line that will be executedarg
- the file to scantimeoutScanDelay
- in ms- Returns:
- The return value of the cmd or 3 if the execution failed
- Throws:
JavaExecuteScriptException
- if script could not be executed
-