Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: logging ftp log into mysql db...

by McDarren (Abbot)
on Apr 01, 2006 at 14:39 UTC ( #540636=note: print w/replies, xml ) Need Help??

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 :)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://540636]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-06-08 15:53 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (34 votes). Check out past polls.