Koozali.org: home of the SME Server

Cronjob Error

robert

Cronjob Error
« on: June 24, 2003, 06:14:41 PM »
Hi

I installed the updated Clamav 0.6 antivirus and amavis engine on SME 5.5. Now my problem is the cronjob that is supposed to run on an hourly basis to update the program is not working.

I first had the cronjoblike this

#!/bin/sh

# Clam Antivirus virus definitions updater example crond entry
#
#+-----------------------Minute           (0-59)
#|    +-------------------Hour of Day    (0-23)
#|    |    +---------------Day of Month  (1-31)
#|    |    |    +-----------Month of Year (1-12)
#|    |    |    |    +-------Day of Week   (0=Sun,6=Sat)
#     v   v   v   v   v
      0    *   *    *   *    root    /usr/bin/freshclam --quiet -l /var/log/clamav/freshclam.log

but every time the job runs I get a

/bin/sh: root: command not found

error in the admin email.

I changed it to

0    *   *    *   *    root    /usr/bin/freshclam --quiet -l /var/log/clamav/freshclam.log

with the same results. Can anyone tell me what I need to do to get the job running.

TIA

Dan Brown

Re: Cronjob Error
« Reply #1 on: June 24, 2003, 06:37:50 PM »
Yep, take out the "root" part.