in reply to Re^2: Reading only new lines from a file
in thread Reading only new lines from a file
To detect a log file rotation you could keep track of the inode number of logfile.2 but it would be necessary to examine the inode number more frequently that the log rotation software runs.