My approach is as follows (pseudocode):
Hope this helpswhile (1) { stat the file if size of file changed since last time { open file seek to previous EOF print file contents until EOF save EOF position for next time close the file } sleep for x seconds }
--
I'm Not Just Another Perl Hacker
In reply to Re: Log file tailing
by rinceWind
in thread Log file tailing
by wellsja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |