Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: logging ftp log into mysql db...

by perlknight (Pilgrim)
on Apr 02, 2006 at 13:56 UTC ( [id://540749] : note . print w/replies, xml ) Need Help??


in reply to Re: logging ftp log into mysql db...
in thread logging ftp log into mysql db...

Do you know if File::Tail takes into account when the log files get rotated? Thanks.

Replies are listed 'Best First'.
Re^3: logging ftp log into mysql db...
by McDarren (Abbot) on Apr 02, 2006 at 14:20 UTC
    Well, from the docs:
    If the file does not get altered for a while, File::Tail gets suspicio +us and starts checking if the file was truncated, 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 logf +iles were rotated, they will just quietly work on.
    So I would say the answer to that question is yes :)