Le Fri, 13 Apr 2007 15:42:43 +0200,
Roger M <[EMAIL PROTECTED]> a écrit :

> On Fri, 2007-04-13 at 13:26 +0200, Pascal Duchatelle wrote:
> > Hello,
> > I am not that much experienced with linux.
> > I would like to have freshclam doing updates by itself. Until now I
> > did the update manually.
> > The clamav-update file in my /etc/cron.d directory is as follow:
> > 
> > ## Adjust this line...
> > MAILTO=root,postmaster,webmaster,clamav
> > 
> > ## It is ok to execute it as root; freshclam drops privileges and
> > becomes
> > ## user 'clamav' as soon as possible
> go
> 
> vi /etc/cron.hourly/freshclam
Thank you Roger,
but since cron.whateverly are directories (I have Fedora core 6)
and the files in them are script shell files, I guess that the first
line in the freshclam file that I open/create shoud be :
#!/bin/sh
Am I right ?
Thank you again
Pascal
> 
> then add
> 
> /usr/local/bin/freshclam --quiet -l /var/log/clamav/freshclam.log
> 
> Then save and then:
> 
> chmod 0755 /etc/cron.hourly/freshclam
> 
> It will run updates every hour, if you want to update once a day then
> use cron.daily if once a week use cron.weekly.
> > 0  */3 * * * root /usr/share/clamav/freshclam-sleep
> > 
> > how should I edit it to have it work ?
> > 
> > The shell script freshclam-sleep it is supposed to run "points" to a
> > freshclam file in the /etc/sysconfig directoryand in this file I
> > commmented (#) the FRESHCLAM_DELAY=disabled-warn line
> > 
> > From what I understand, the freshclam-sleep script should be run
> > every 3 hours. The cron.hourly directory is empty.
> > Also I gathered that I should add a line in the/my crontab to run
> > freshclam as a cron task.
> > Before I mess everything up, can someone tell me how to set the cron
> > thing to run freshclam this way.
> > Thanx in advance.
> > Pascal
> > 
> > _______________________________________________
> > Help us build a comprehensive ClamAV guide: visit
> > http://wiki.clamav.net
> > http://lurker.clamav.net/list/clamav-users.html
> 
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit
> http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to