in reply to •Re: Tailing rolling logs
in thread Tailing rolling logs
Obviously set $inode before entering the loop. Does seem to do the trick, but I need to do some more testing Thanks Jonif ( stat($file)->ino != $inode ) { # file has rolled if true close (FILE); open (FILE, "$file") or die "Cannot open file $file: $ +!\n"; $inode = stat(*FILE)->ino; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: •Re: Tailing rolling logs
by merlyn (Sage) on Jan 30, 2004 at 13:43 UTC |