Class JavaExecuteScript
- java.lang.Object
-
- fr.gouv.vitam.ingest.external.common.util.JavaExecuteScript
-
public class JavaExecuteScript extends java.lang.Object
Class JavaExecuteScript used to execute the shell script in java
-
-
Constructor Summary
Constructors Constructor Description JavaExecuteScript()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionOutput
executeCommand(java.lang.String cmd, java.lang.String arg, long timeoutScanDelay)
Return status when execute the shell script scan-clamav.sh for scanning the file
-
-
-
Method Detail
-
executeCommand
public static ExecutionOutput executeCommand(java.lang.String cmd, java.lang.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
-
-