logcut - shorten logfiles
logcut [ -s size ] -c
To avoid to fill up a file system with logfiles this command may be placed in crontab and scheduled to run on a regular basis. See the EXAMPLES section for examples.
# run logcut in a 2 hour interval # 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * [ -x /opt/edrc/bin/logcut ] \ && /opt/edrc/bin/logcut -c >/dev/null 2>&1
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.