From: laxman on 24 Feb 2010 01:49 Hi All, I need a script to rotate logs in /var/log/httpd for every two days. and i want to move the old logs to different location and then delete the logs . Please help in this i am using Redhat linux. Thanks in Advance Lakshman.
From: Stachu 'Dozzie' K. on 24 Feb 2010 02:37 On 2010-02-24, laxman <alakshmanrao(a)gmail.com> wrote: > Hi All, > > I need a script to rotate logs in /var/log/httpd for every two days. > and i want to move the old logs to different location and then delete > the logs . Please help in this i am using Redhat linux. Use logrotate. -- Secunia non olet. Stanislaw Klekot
From: Bill Marcum on 24 Feb 2010 02:37 On 2010-02-24, laxman <alakshmanrao(a)gmail.com> wrote: > Hi All, > > I need a script to rotate logs in /var/log/httpd for every two days. > and i want to move the old logs to different location and then delete > the logs . Please help in this i am using Redhat linux. > > Thanks in Advance > Lakshman. > yum install logrotate
|
Pages: 1 Prev: FS Monitor Next: Useful use of cat? (was Re: This Week's Useless Use of Cat Award goes to...) |