XP is just a number | |
PerlMonks |
Re: Tailing A Swapped Fileby japh (Friar) |
on Mar 31, 2002 at 06:29 UTC ( [id://155568]=note: print w/replies, xml ) | Need Help?? |
The pertinent snippet:
If the file does not get altered for a while, File::Tail gets suspicious and startschecking 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 effect of this is that the scripts need not be aware when the logfiles were rotated, they will just quietly work on.
In Section
Seekers of Perl Wisdom
|
|