Hello,
Thank you for reaching out! To run the scanner through the CLI, you need the command
imunify-antivirus malware on-demand start
To add scanning with mask ignore
imunify-antivirus malware on-demand start --ignore-mask
/home/*/mail/*,/home/*/tmp/*,*.tar.gz,*.tar,*.gz,*.tgz,*.bz,*.tbz,*.zip,*. rar --path / home
ignore-mask in case malware on-demand start ignore-mask may take
Patterns are Unix shell style:
* matches everything
? matches any single character
[seq] matches any character in seq
[! seq] matches any char not in seq
So imunify-antivirus malware ignore list - doesn't work here. Only full paths are needed here.
i.e. add imunify-antivirus malware ignore add /home */mail/* - will not work
This information in our documentation will be useful here
https://docs.imunify360.com/command_line_interface/#malware
Thank you.