i'm written a very simple bash script to run webalizer on my web logs, and it works fine. when i set up a cron job to run it every half hour however, it says the command cannot be found
just running it:
but i get this email when it is run as a cron job:
any ideas?
just running it:
Code:
[root@Gemini root]# sh /home/stat-www.pl
Webalizer V2.01-10 (Linux 2.4.18-3smp) English
Using logfile /home/www/logs/access.log (clf)
Creating output in current directory
Hostname for reports is 'Gemini.ihateaol.co.uk'
Reading history file... webalizer.hist
Generating report for October 2002
Generating report for November 2002
Generating summary report
Saving history information...
11704 records in 0.71 seconds
[root@Gemini root]#
but i get this email when it is run as a cron job:
Code:
From
[email][email protected][/email] (Cron Daemon)
To
[email][email protected][/email]
Date
Thu, 14 Nov 2002 20:00:01 GMT
Subject
Cron <root@Gemini> sh /home/stat-www.pl
/home/stat-www.pl: webalizer: command not found
any ideas?