[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Re: RAQ4 web.cache files getting HUGE
- Subject: Re: [cobalt-users] Re: RAQ4 web.cache files getting HUGE
- From: "Zeffie" <cobaltlist@xxxxxxxx>
- Date: Tue May 4 10:10:01 2004
- Organization: Electronic Consultants Inc.
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Here is the script:
> --------------------------
> #!/bin/bash
> # 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
> --------------------------
> - Bill
> wouldn' that affect the domain access statistics?
depends on when it runs....
I don't reccomend automation on this because you shouldn't need it... but
here is my script :)
---------------
#!/bin/sh
rm /home/sites/*/logs/*
-----------
you might want to run it from the command line as needed???
Zeffie... "Get your Z's with Zeffie" 734-454-9117
Cobalt RaQ Repairs, Development, and Maintenance.
Cobalt Spam Filter, Security, Firewall, Anti Virus Products
http://www.wordassassin.com/ Wordassassin Authorized Dealer
http://www.zeffie.net/ Free pkg and rpm resources for the Cobalt user
http://www.zeffie.com/ Home of the Worlds Largest Collection of RaQ rpms
"We have joy, we have fun, we boot Linux on our SUN..."