[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Cron for AWStats



The cron that I am trying to setup would be in either /etc/cron.half-hourly
or maybe /etc/cron.daily (if the AWStats info gets too big and the load is
too much for the server to run it every half hour).  The command that the
cron has to execute would be the following:

#!/bin/sh
#AWStats Script
/home/groups/home/web/webstats/awstats_buildstaticpages.pl -config=www.bratt
ain.com -update -output -awstatsprog=/home/groups/home/web/webstats/awstats.
pl -dir=/home/groups/home/web/webstats

The file would be saved as awstats.sh probably.  I tried that and for some
reason it did not work.  It did not create the new html files like it was
supposed to, it did not update anything but at the same time I didn't get an
error.  I am running the following cron under /etc/cron.half-hourly for SMA
and it works great:

#!/bin/sh
#Sendmail Analyzer Report Script
/usr/local/bin/sma -f /home/users/systems/public_html/maillog/sma.conf
/var/log/maillog > /home/users/systems/public_html//maillog/maillog.html

I don't understand why the one for AWStats does not work but the one for SMA
does.  Would it be some permissions in the directory where I have the
AWStats files?  It is weird because if I execute the command logged in as
root from command line it does not complain at all and updates the pages.

Any help would be appreciated.

Santiago.

montalvanware.com