http://qs1969.pair.com?node_id=540636


in reply to logging ftp log into mysql db...

Why don't you have a look at File::Tail?

Replies are listed 'Best First'.
Re^2: logging ftp log into mysql db...
by perlknight (Pilgrim) on Apr 02, 2006 at 13:56 UTC
    Do you know if File::Tail takes into account when the log files get rotated? Thanks.
      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 :)