• Welcome to The Network People Support Forums. Please login or sign up.

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

Started by luv2ride, February 14, 2008, 07:29:33 AM

Previous topic - Next topic


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



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.



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