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 --force /var/log/messages"
lots of "error: /var/log/messages:7137 unknown option 'May' --
ignoring line"
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