Webstats Emailer Script
By makeaweli
- 1 minutes read - 79 wordsI wrote a perl script to email myself the current webstats HTML webpage.
The Problem
We use awstats to trend the webserver logs on www
It’s an excellent package with one glaring fault: No Email Notification!
The Solution
To remedy this, I’ve written a perl script to do this. It simply loads the page source using curl, and creates an HTML email.
The script is named ‘webstats_emailer.pl’ and is installed on sysadmin server.
‘webstats_emailer.pl’ crontab entries on sysadmin server: