PDA

View Full Version : logrotate?


flight884
07-23-2010, 04:10 PM
Hi -

I'm a relative newbie to shell scripting. I've created a script that generates logs every time it is run (potentially every ten minutes). I'm looking to keep this log directory tidy. Is logrotate available to use? (I don't see it on my default path).

Thanks
-flight884

Terra
07-23-2010, 04:14 PM
You will need to call it directly via: /usr/sbin/logrotate

Kevin
07-23-2010, 04:14 PM
The logrotate executable is installed as /usr/sbin/logrotate.

I have never used it for user level tasks instead of system level but I don't see why it wouldn't work.

flight884
07-23-2010, 04:26 PM
Thank you for the quick response!

-flight884