Hi,
If you install webalizer from redhat rpm the following script is placed in /etc/cron.daily: It is actually named 00webalizer so that it is executed before all the other scripts in /etc/cron.daily AND (owner/group root and permissions 755).
If you wanted to run Webalizer daily from my /etc/cron.daily directory at 12:05am
PHP Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
# sysstat
0 * * * 0,6 /usr/lib/sa/sa1 600 6 &
5 19 * * * /usr/lib/sa/sa2 -A &
# webalizer (run daily at 12:05 am)
05 0 * * * root run-parts /etc/cron.daily2
This is something I do. Create a directory called (for example) /etc/cron.daily2 and place the equivalent webalizer script in it. Then edit /etc/crontab so that you have 'run-parts' (/usr/bin/run-parts script) do what it does for /etc/cron.daily but at a different time :
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
5 0 * * * root run-parts /etc/cron.daily2
cheers