> I notice that afterwhile my files in /var/log get kind of big. Mainly
> debug, messages and syslog. If I delete them, then nothing else is
> logged until I re-boot. I read through the man pages and am not quite
> able to figure out how to be able to delete these files when they get
> too large, but yet still have message written to these log files.
> Thanks in advance.
Just open 'em up in emacs or pico or vi or whatever your favorite editor
is, kill everything but the last two day's messages (or whatever you want
to keep) and close 'em up again. You can't delete 'em, because then the
processes (like syslogd) that write to those files think they're already
open ... just make 'em smaller. Heck, you could even set up a crontab
entry to do this once a week:
tail -100 /var/log/messages > /var/log/messages.new
rm /var/log/messages
mv /var/log/messages.new /var/log/message
(There are probably a hundred better ways to do this, but it serves as an
example).
Will
http://www.ecl.udel.edu/~lowe/
*****************************************************************************
Good Idea: Feeding Stray Cats in the Park.
Bad Idea: Feeding Stray Cats in the park ... to a bear.
*****************************************************************************