On Mon, 2003-10-20 at 12:25, Genti Hila wrote:
> hi,
>  
> I am running RedHat 8.
> My logfiles fill up once a week and take a lot of space in HDD. I just
> want to create a batch file to clean all the files once a week. Any
> idea how can i do that ?

Check out logrotate.  The default config (/etc/logrotate.conf) rotates
weekly.  You can change that to daily and instruct it to save only 7
days' worth of files.  Read the manpage and browse the logrotate.conf
and example files in /etc/logrotate.d/ for ideas.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to