Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ Rotation of files

Posted by: MSK Dec 7 2010, 10:56 AM

Hi,

I need to write a program where I can rotate files, keeping a give number of old log files. I'm new to programming and not sure where to begin.

Any suggestions would be very much appreciated.

Thank you,
Sue Ann

Posted by: michaelk Dec 7 2010, 07:48 PM

Take a look at logrotate for a good starting point

Posted by: MSK Dec 7 2010, 07:56 PM

QUOTE (michaelk @ Dec 7 2010, 07:48 PM) *
Take a look at logrotate for a good starting point

What is logrotate? Where do I go to look at this?

Posted by: michaelk Dec 7 2010, 10:02 PM

http://www.thegeekstuff.com/2010/07/logrotate-examples/
http://linuxers.org/howto/howto-use-logrotate-manage-log-files
http://www.linux.com/archive/feed/48390

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)