[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raq4] how do I RESET the stats
- Subject: Re: [cobalt-users] [raq4] how do I RESET the stats
- From: Daniel Neuhaus <cobalt.com@xxxxxxx>
- Date: Tue Oct 2 00:44:07 2001
- Organization: DNID
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I want every month the stats set on 0 again
> How do I do that ?
create a small shell-script under /etc/cron.monthly
#!/bin/sh
rm /home/sites/site*/logs/web.cache*
rm /home/sites/site*/logs/web.stats
rm /home/sites/site*/logs/ftp.cache*
rm /home/sites/site*/logs/ftp.stats
rm /home/sites/site*/logs/mail.cache*
rm /home/sites/site*/logs/mail.stats
don't forget to "chmod 700 myscript.sh"
Regards,
Daniel
--
free backup-solution for your RaQ:
http://www.dnid.de/cobalt/raqbackup/