in reply to Re: •Re: Tailing rolling logs
in thread Tailing rolling logs
Hi, yup, looked at File::Tail, didn't think it could work with rolling logs, unless I read the spec wrong.Did you miss this part?
If the file does not get altered for a while, "File::Tail" gets suspicious and startschecking if the file was trun- cated, or moved and recreated. If anything like that had happened, "File::Tail" will quietly reopen the file, and continue reading. The only way to affect what happens on reopen is by setting the reset_tail parameter (see below). The effect of this is that the scripts need not be aware when the logfiles were rotated, they will just quietly work on.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|