October 30, 2003

AWSTATS automatic updating script

Hey! Enki has moved his blog to Armyofevilrobots.com. Check it out after you are done here. This page is going nowhere though...

I am using Awstats for web stats on this server, but was annoyed with having to place changes in my /etc/cron.daily/logrotate file in order to get updating working automagically. I wrote a quick little script to handle it, which locates and runs all the updates for all awstats.domain.conf files in the /etc directory.

Here is the script:

    #!/bin/bash
    for WEBSITE in `ls /etc/awstats*conf | sed "s/^.etc.awstats.//" | sed "s/.conf$//"`; do
    /var/www/cgi-bin/awstats.pl -update -config=$WEBSITE
    done;

In RedHat or similar, just place this line in your /etc/cron.daily/logrotate file just before the call to the logrotate script, like so:

    #!/bin/sh
    /usr/local/bin/awupdate
    /usr/sbin/logrotate /etc/logrotate.conf

Posted by Enki at October 30, 2003 12:06 PM | TrackBack
Comments

Thanks for this nice site, very interesting.:-)

Posted by: texas hold em poker at July 27, 2004 02:34 PM


Hi you are doing a great deal.I wish you a succes to the future.Regards Pavel

Posted by: online gambling at August 16, 2004 11:06 AM

Very interesting. Check out our site.

Posted by: online poker at August 19, 2004 01:20 PM

Hello everybody, I love this site and I will recommend it to all my friends.Do not hesitate and visit our site…Regards Carl

Posted by: texas holdem poker at August 19, 2004 03:32 PM

Love this site very nice in design and easy to navigate
It was exactly what I was looking for!!
Very informed and interesting comments!
Try play! http://www.btd-free-roulette.com
Greetings from me!!

Posted by: online roulette at August 30, 2004 12:42 AM

All you have to do is download the software for FREE to your
desktop You have no obligation and at the very least you can play
a game for FREE to see what you like.

Posted by: internet casino at September 10, 2004 10:45 PM

This was the week of many errands. Many things to pick up. Many
places to be. New places. Places you ain't never seen. Places I
ain't never been. In but a few short days, I've begun to
understand why an old friend of mine refers to himself (or once
did) as "the Sophist," and I have begun to see the beauty of
Periclean rhetorical tradition. Or, at least, his small part of
the pie. I've even found a new corner to buy a good cup of
coffee.

Posted by: online casino at September 27, 2004 10:46 AM

For Cialis information online.

Posted by: Cialis cheap at October 9, 2004 02:48 PM

Info on Levaquin tablets.

Posted by: Levaquin tablets at October 13, 2004 03:39 PM

Seasonale online site.

Posted by: Buy Seasonale at October 15, 2004 02:44 AM

Generic Fioricet online site.

Posted by: buy Generic Fioricet at October 16, 2004 05:08 AM

Online Fioricet information site.

Posted by: Fioricet at October 17, 2004 04:02 PM

Remeron info online.

Posted by: Remeron at October 22, 2004 11:34 AM

Check Effexor info site.

Posted by: Effexor at October 24, 2004 05:12 AM

Prescription Celexa

Posted by: Order Celexa at October 25, 2004 02:03 PM

The AWSTATS extension for Typo3 creates website usage statistics in the backend. In order to update the stats you click on the button "update now".
If the stats haven't been updated for a while or you are resolving IP addresses to host names, the update process can take quite a while.
It might be better to automatically update the stats for example every hour in order to keep the new data since the last update relatively small.

Posted by: H. Tadalafil at October 30, 2004 04:25 AM

Elidel cream info site.

Posted by: Elidel at November 4, 2004 06:23 AM

Generic Wellbutrin online.

Posted by: Wellbutrin at November 6, 2004 02:30 AM

The best bitches on the web

Posted by: weak sister bitch at November 12, 2004 12:32 PM

highest quality replica jewelry Rolex watch, wrist watch, Replica Watch purchase your affordable realistic Rolex replica watch today at http://www.pro-rolex-replica-watches.com

Posted by: Rolex Replica at November 14, 2004 12:17 AM

For some reason, this fortune reminds everyone of Marvin Zelkowitz.
Home Equity Loan Rate http://www.home-equity-loan-x.com

Posted by: Home Equity Loan Rate at November 16, 2004 12:54 PM
Post a comment









Remember personal info?