Changes

From Amahi Wiki
Jump to: navigation, search
482 bytes removed ,  23:48, 19 July 2014
==== Daily Scan with Email Notifications ====
In this example, we will configure a cronjob to scan the Docs share every day and send To add email notifications for any detected infections:* Create cron file: vim , use the following code for /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, EMAIL and EMAIL_FROM to your email addresses:
<pre>#!/bin/bash
check_scan</pre>
* Give our cron script executable permissions:
chmod +x /etc/cron.daily/manual_clamscan
* Create empty log file
mkdir -p /var/log/clamav
touch /var/log/clamav/manual_clamscan.log
* (OPTIONAL) Run the script
/etc/cron.daily/manual_clamscan
 
And you’re done! That should be the minimum required to install ClamAV and Perform a daily scan of a specific directory.
12,424

edits