[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Clearing web.log



At 07:13 PM 19/02/2004 +0800, you wrote:
Hi all,

did anybody know how to clearing the web.log?

#!/bin/bash

# by William Brillinger, March 27, 2003
# clear all logs for each site

for URL in $( find /home/sites -type l -maxdepth 1 | sed -e 's/\/home\/sites\///g' ); do
        echo --Removing logs for $URL...
        ls -lah /home/sites/$URL/logs
        rm /home/sites/$URL/logs/*
        echo
done

echo Completed





---------------------------------
William J.A. Brillinger
Precision Design Co.

E-Mail:   mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net