Thursday, 24 September 2009

Clear domlogs

cd /usr/local/apache/domlogs


for i in `du -sch * | grep G`; do :> $i; done


for i in `du -sch * | grep [0-9][0-9][0-9]M`; do :> $i; done


for i in `du -sch * | grep [0-9][0-9]M`; do :> $i; done


for i in `du -sch * | grep [0-9]M`; do :> $i; done


/etc/init.d/httpd restart

No comments:

Post a Comment