Hi everyone, I am relatively new to server admin tasks and completely self taught. (which is always an issue.)
I am having a small problem with my domain logs/stats software. I am using a relatively well known script called 'Awstats' which does it's job quite well.
I have a crontab task running; to collect all the data from the apache log file and sort it into awstat's data file which is working perfectly.
The problem I have
is that the cron.daily file/job I have created to regenerate the .html pages fails. However, if I run the commands independently through a shell, everything runs properly.
I have created a file (viewable below) that contains a shell command for each domain, that is located inside the cron.daily folder. If someone could please explain to me why this is not working or even show me how I can resolve the issue, I would be very appreciative.
/var/www/awstats/tools/awstats_buildstaticpages.pl -update -config=xx.com -dir=/home/xx.com/stats done;
I apologise if this is a stupid question but I have spent hours trying to resolve it myself to no avail.
Thanks, Gordon MacK