New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.


Post Reply New Thread Subscribe

Thread Tools

Member Since: Sep 24, 2008
Posts: 8
timgolding is on a distinguished road

timgolding is offline
Hi. I have some mac servers. I am trying to clean them up. The disk usage was maxed out. The main reason for this was because of excessive log files. So i decided i need to delete some of the old apache log files. That was not a problem since apache has a built in rotatelogs feature. Next i wanted to rotate some of the other log files. I have one log file daily.out that is 977MB. Kind of ridiculous for a log file. So i tried the logrotate command

logrotate daily.out
I got this command from a linux forum hoping it would work with Darwin. However it didn't work. It doesn't work on any of my macs. i get the following error:

-bash: logrotate: command not found
Is this normal. Is logrotate something that doesn't come with macs? Is there another command that would achieve this. I need something because eventually i would like to have a cronjob that rotates my logs every so often and deletes old rotated logs. How can i achieve this?
QUOTE Thanks

Post Reply New Thread Subscribe

« Xcode does not start ! | Can I install Xcode 3.1 on a G4? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 12:18 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?