Class JavaExecuteScript


  • public class JavaExecuteScript
    extends java.lang.Object
    Class JavaExecuteScript used to execute the shell script in java
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaExecuteScript

        public JavaExecuteScript()
    • 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 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