[EMAIL PROTECTED] wrote:
Freshclam via cron....

What sort of update intervals are people using, and can someone show me a
working crontab entry? I've tried calling freshclam like this via a crontab
entry

06 0  * * * /usr/local/bin/freshclam

BUt it doesn't seem to work. Which means I'm probably missing somethign
obvious.

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html


-- CUT HERE --

#!/bin/bash

sleep $[ 900 + $RANDOM % 1800 ] ; /usr/sbin/chroot /usr/local/clamav /bin/freshclam -u clamav --config-file=/etc/freshclam.conf --quiet

--CUT HERE --

I placed this script into /etc/cron.hourly and it works just fine. The command line looks a bit long because I decided to chroot clamd/clamav-milter/freshclam under /usr/local/clamav

Best Regards,
--
George Chelidze
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to