Package fr.gouv.vitam.antivirus.util

# Class JavaExecuteScript

java.lang.Object
fr.gouv.vitam.antivirus.util.JavaExecuteScript

public class JavaExecuteScript extends Object
Class JavaExecuteScript used to execute the shell script in java

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JavaExecuteScript()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ExecutionOutput`
  `executeCommand(String cmd, String arg, long timeoutScanDelay)`
  Return status when execute the shell script scan-clamav.sh for scanning the file

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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