Jump to content

log messages file


Guest rock
 Share

Recommended Posts

Hello,

 

I have log/message file record from June 1,2004 up to now. How do I get this file from getting bigger and bigger.

 

Thanks

 

RK

 

[moved from Installing Mandrake by spinynorman]

Link to comment
Share on other sites

Hello anon,

 

I have been trying to figure out how one uses this command. I read the man pages but I am still in dark. Can you please give me a hint

 

 

Thanks

 

RK

Link to comment
Share on other sites

A quick, dirty and very un-elegant way is to rename the logs that are too big and add a date stamp to the file name, so that you can identify them later.

 

logrotate must be added to cron, which is a scheduler daemon.

man cron

or googleing 'cron' will give you some tips on how to use it.

Link to comment
Share on other sites

A real easy way to administer background jobs is with Webmin (http://www.webmin.com/) although learning the CLI to cron is always hightly recommended. Every install of linux no matter who the vendor was, has had logrotate running by default so maybe you disabled it by accident??

 

Anyway... Webmin is a really useful tool for a LOT of admin tasks so you should install it for them as well as handling background jobs.

 

cheers..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...