Class JavaExecuteScript

java.lang.Object
fr.gouv.vitam.ingest.external.common.util.JavaExecuteScript

public class JavaExecuteScript extends Object
Class JavaExecuteScript used to execute the shell script in java
  • 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 executed
      arg - the file to scan
      timeoutScanDelay - in ms
      Returns:
      The return value of the cmd or 3 if the execution failed
      Throws:
      JavaExecuteScriptException - if script could not be executed