Adapting cmdscan to my needs

Hi guys.
I’m using CentOS 5.x, no GUI, running CPANEL and Comodo abd I have SSH access to my server.

I needed a CRON to do a daily scan, write only relevent stuff in a log file /var/log/comodo_scan.log, and send me relevent scan result at my email address.
My tech set a CRON in the pas, but this cron freeze and another one is launched the next days again and again; need to kill multiple process:


/opt/COMODO/cmdscan -v -s /home/ |grep -v "Not Virus" | tee /var/log/comodo 2015-08-27 no1.log

I runned this manually and it freeze after about 1 hours:


root@smart [~]# /opt/COMODO/cmdscan -v -s /home/ >/var/log/comodo_2015-08-27_home.log

.. and I get this in another shell .. 

root@smart [~]# tail -n10 -f /var/log/comodo_2015-08-27_home.log
/home/virtfs/XYZ/usr/lib/expect5.43/cat-buffers ---> Not Virus
/home/virtfs/XYZ/usr/lib/locale/locale-archive ---> Not Virus
/home/virtfs/XYZ/usr/lib/sasl2/libanonymous.so ---> Not Virus
/home/virtfs/XYZ/usr/lib/sasl2/libanonymous.so.2 ---> Not Virus
/home/virtfs/XYZ/usr/lib/sasl2/libanonymous.so.2.0.22 ---> Not Virus
/home/virtfs/XYZ/usr/lib/sasl2/libanonymous.la ---> Not Virus
/home/virtfs/XYZ/usr/local/csf/csfwebmin.tgz ---> Not Virus
/home/virtfs/XYZ/usr/local/maldetect.bk558/event_log ---> Not Virus
/home/virtfs/XYZ/usr/local/maldetect.bk558/ignore_sigs ---> Not Virus
/home/virtfs/XYZ/usr/local/maldetect.bk558/VERSION.hash ---> Not Virus
... nothing after this.

I tried another scan for only /home/virtfs/ and it freeze at the same file.

Questions:

  • What is virtfs and how to exclude from scan /home/virtfs/ so it won’t freeze during the scan ?
  • How to log in /var/log/comodo.log with only the relevent infections and scan result ?
  • How to receive also this result by email ?
  • How to automatically quanrantine infected files ?

Thanks.