Favourite way to achieve the above is this:-
tail -f /var/log/messages & # or some other log file
... # log out
The tail process stays there. If something rolls the log files the tail
process still sits there. If you compress the rolled log file there is
now a new compressed file and the old uncompressed file (which is
apparently deleted) both taking up disk space.
You can sometimes regain a lot of disk space by finding old tail processes
(or the like) and killing them! This is often why people see more disk
space following a reboot. If you do this on say a news log file you are
talking *serious* amounts of disk space.
Nigel.
-- [ Nigel.Metheringham@theplanet.net - Systems Software Engineer ] [ Tel : +44 113 251 6012 Fax : +44 113 224 0003 ] [ Friends don't let friends use sendmail! ]