The Network People Support Forums

Mail::Toaster => Configuration Issues => Topic started by: luv2ride on February 14, 2008, 02:29:33 PM

Title: Tail -f -F /var/log/mail/smtp/current
Post by: luv2ride on February 14, 2008, 02:29:33 PM
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

Title: Re: Tail -f -F /var/log/mail/smtp/current
Post by: dcc24 on February 19, 2008, 04:02:42 PM
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
Title: Re: Tail -f -F /var/log/mail/smtp/current
Post by: matt on April 18, 2008, 12:47:59 PM
read the man page for tail. Pay special attention to the -F option.