#!/bin/bash

LISTA=$(ls -l /home/www/*/logs/webalizer* | awk '{ print $8 }')

for elemento in $LISTA ; do

echo "Elaborazione statistiche per" $(basename $elemento)
webalizer -c $elemento

done

LISTA=$(ls -l /home/www/*/logs/logrotate* | awk '{ print $8 }')

for elemento in $LISTA ; do

echo "Ruota log per" $(basename $elemento)
logrotate $elemento

done

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 14-Apr-2010 14:30 by RaffaelePedrini