Tail -f -F /var/log/mail/smtp/current

Started by luv2ride, February 14, 2008, 02:29:33 PM

Previous topic - Next topic

luv2ride

Tail seems to drop the connection when monitoring this log file. Is there a way to keep this alive? I have tried both -f & -F with and without piping it thru tai64nlocal

tail -f /var/log/mail/smtp/current |tai64nlocal

Thanks


dcc24

This log is rotated every five minutes (depending on how frequent you run toaster-watcher.pl in your cron).  That would explain why you suddenly stop seeing output.  After it is rotated you have to run tail again on the latest "current" file.

Cheers

matt

read the man page for tail. Pay special attention to the -F option.