[root@localhost ~]# mkdir -pv /clam/quarantine
mkdir: created directory `/clam'
mkdir: created directory `/clam/quarantine'Create a bash script to ease the daily virus scanning process.<
[root@localhost ~]# cd /clamPut the following content in the script
[root@localhost clam]# vi clamscan_report.sh
#!/bin/bashGive it executible permission so that cron is able to execute it.
clamscan --move=/clam/quarantine/ -ril /clam/clamscan_report.txt /
[root@localhost clam]# chmod u+x clamscan_report.shNow open up the crontab file and put this entry
55 7 * * * root /clam/clamscan_report.shat the below of the crontab file. Do not forget to keep running your system at 07:55 (7:55 AM) so cron will run the virus scan.


No comments:
Post a Comment