LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Clamav How to Schedule scans help

[ILUG] Clamav How to Schedule scans help

kevin kevin at cybercolloids.net
Thu May 20 12:29:33 IST 2004


We use the script below to scan peoples home files once a week. The file is 
dropped into /etc/cron.weekly You just need to drop it into cron.daily and 
change the /home to /, once a day should be more than enough. If you have a 
dial on demand setup then also add

ping -c5 www.cybercolloids.net
/usr/bin/freshclam --datadir=/var/lib/clamav --log=$LOG_FILE --log-verbose

Just above the clamscan line to open the modem and get the updates before 
scanning. Set it up to run as root from webmin and you should be flying.


#!/bin/sh
# A simple update script for the clamav virus database. This could as well
# be replaced by a SysV script.
# fix log file if needed
LOG_FILE="/var/log/clamav/clamscan.log"
if [ ! -f ${LOG_FILE} ]; then
    touch $LOG_FILE
    chmod 6666666G_FILE
    chown clamav.clamav $LOG_FILE
fi
/usr/bin/clamscan -ri -l /var/log/clamav/clamscan.log /home


On Thursday 20 May 2004 11:25 am, Frank Murphy wrote:
Having checked
http://www.google.com/search?q=site:www.linux.ie%20clamav

http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=clamav+schedule+scan&btnG=S
earch

with no sucess,

How do I schedule clamav to scan the box (hda, hdb)

twice a day say, 11am & 11pm,

I know its a  cronjob, that as far as I get.

Have used the webmin module to set up daily updates,
but it doesn't seem to do daily scans.

Frank




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell