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
Have tried "logrotate --force /var/log/messages"
lots of "error: /var/log/messages:7137 unknown option 'May' --
no wonder - you gave it the logfile as con figuration
I done want to nano "wipe the file" if possible
Normally you simply type "> /var/log/messages" which finally
mean "redirect nothing to the file" and since append would
be >> it is cleared