Re: F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Frank Murphy
On Wed, 01 May 2013 12:22:18 +0200 Reindl Harald wrote: > Normally you simply type "> /var/log/messages" which finally > mean "redirect nothing to the file" and since append would > be >> it is cleared > Thank you Harald, I'm still learning though middle aged. -- Regards, Frank www.frankly3d

Re: F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Reindl Harald
Am 01.05.2013 09:52, schrieb Frank Murphy: > How to safely clean /var/log/messages for specific testing. > or set it to hourly rotate. > Couldn't see specific config in /etc/logrotate.d logotate does not work this way /etc/logrotate.d/syslog /var/lib/logrotate.status > Have tried "logrotate --

Re: F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Frank Murphy
On Wed, 01 May 2013 11:20:15 +0200 Jon Ingason wrote: > Have you looked in /etc/logrotate.d/syslog? > > On my F18 it contains: > > $ more /etc/logrotate.d/syslog > /var/log/messages Missed it, Will separate message from it, put it in it own conf and hope it keeps. -- Regards, Frank www.fr

Re: F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Jon Ingason
2013-05-01 09:52, Frank Murphy skrev: How to safely clean /var/log/messages for specific testing. or set it to hourly rotate. Couldn't see specific config in /etc/logrotate.d Have tried "logrotate --force /var/log/messages" lots of "error: /var/log/messages:7137 unknown option 'May' -- ignoring

Re: F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Joe Zeff
On 05/01/2013 12:52 AM, Frank Murphy wrote: How to safely clean /var/log/messages for specific testing. or set it to hourly rotate. Couldn't see specific config in /etc/logrotate.d Have tried "logrotate --force /var/log/messages" lots of "error: /var/log/messages:7137 unknown option 'May' -- ign

F18+ /var/log/messages safely clean/rotate

2013-05-01 Thread Frank Murphy
How to safely clean /var/log/messages for specific testing. or set it to hourly rotate. Couldn't see specific config in /etc/logrotate.d Have tried "logrotate --force /var/log/messages" lots of "error: /var/log/messages:7137 unknown option 'May' -- ignoring line" I done want to nano "wipe the file