[thelist] Awstats cronjob problem
Anthony Baratta
Anthony at Baratta.com
Wed Jan 2 18:44:37 CST 2002
At 04:23 PM 1/2/2002, CDitty wrote:
>Now to the problem......
>I have installed and configured awstats for my server. Everything is
>running fine with the exception that I cannot get awstats to update via
>cron. This is what I have in my crontab - /home/httpd/cgi-bin/awstats.pl
>-config=myconfig -update
>
>This is the error that I get - Error: Couldn't open config file
>"awstats.209.61.158.9.conf" nor "awstats.conf" : No such file or directory
>
>Awstats will update if I run the update command from the cgi-bin directory
>via telnet.
Maybe you should setup a shell program that changes to the proper directory
then executes the target program for you.
e.g. in cron
/home/httpd/bin/awstats_update
then in awstats_update
cd /home/httpd/cgi-bin/
./awstats.pl <blah blah blah>
----
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list