[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Clearing web.log
- Subject: Re: [cobalt-users] Clearing web.log
- From: "William J.A. Brillinger" <billy@xxxxxxxxxx>
- Date: Thu Feb 19 05:12:59 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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