#!/bin/bash # update access statistics for the web site if [ -s /var/log/httpd/access_log ] ; then /usr/bin/awstats_updateall.pl now -config-dir=/etc \ -awstatsprog=/home/services/httpd/html/cgi-bin/awstats.pl > /dev/null fi exit 0