Please read https://help.eset.com/efs/7/en-US/?scans.html To run scan from a custom script and get an immediate response, use the /opt/eset/efs/sbin/cls/cls command. Syntax: /opt/eset/efs/sbin/cls/cls [OPTIONS..] FILES.. Exit codes Meaning 0 No threat found 1 Threat found and cleaned 10 Some files could not be