[CentOS] Webalizer cron syntax

Fri Sep 12 05:38:48 UTC 2008
Bob Hoffman <bob at bobhoffman.com>

Here is the original cron.daily for webalizer.
#if [ -s /var/log/httpd/access_log ]; 
then exec /usr/bin/webalizer -Q;

I want to add two more for the virtual domains.

I tried adding these

if [ -s /var/log/httpd/mysite1_access_log ]; then exec /usr/bin/webalizer
-Qc /etc/webalizer/mysite1.conf;
if [ -s /var/log/httpd/mysite2_access_log ]; then exec /usr/bin/webalizer
-Qc /etc/webalizer/mysite2.conf;

If I do not add the fi after each, the file gets an error when I run

I added the -c and the conf file, but I feel that I am missing the correct

Or am I supposed to make a new file for each.