Welcome to MNC HOST Inc

Configure clamav for daily scan

1. Create cron file:
vim /etc/cron.daily/manual_clamscan

Add the following to the file above. Be sure to change SCAN_DIR to the directory that you want to scan:

#!/bin/bash
SCAN_DIR="/home"
LOG_FILE="/var/log/clamav/manual_clamscan.log"

/usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE

Give our cron script executable permissions:

chmod +x /etc/cron.daily/manual_clamscan

You can even run the above script to ensure that it works correctly.

Thanks to CentOSBlog :) Let me know if you have any query .Feel free to open ticket for the same .

  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How to install ClamAV (clamantivirus) on server

ClamAV is an industry leading open source (GPL) antivirus engine or threat detction or removal...

Enable/Activate Ioncube Loader in Cpanel Server

Before enabling the same from ssh ,we recommend to enable it via WHM Panel :Steps :1.Open WHM :...

Install Litespeed in Centos Cpanel Server

-------------LiteSpeed Web Server (LSWS) is a high-performance Apache drop-in replacement. LSWS...

ARIN IP Allocation Policy | MNCHOST

As many are already aware, ARIN's IPv4 unassigned IP address pool, if not already depleted,...

Proudly Powered by Jain Software