Re: Logfile roll-over

Lance Dillon <[email protected]> Thu, 20 Apr 2017 13:06:02 +0000 (UTC)
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
What some programs do is not keep the file open, but open it new each time, keeping a pointer to where it was last.  If you are unable to seek that far, it means the log file has been restarted, and so seek back to the beginning and start over.
 

    On Thursday, April 20, 2017 7:14 AM, Marc dirix <[email protected]> wrote:
 

 Hello,
Pike8.0 under windows 10.
I have a script that follows a logfile to detect a certain message.Principially I'm using Stdio.FILE->gets(). This works well, until at some point the program decides to roll-over the logfile. 
I have not tested it, but I suppose the Stdio.FILE object just keeps to old renamed file open.
Is there an easy way to detect the moving of the logfile from the Stdio.FILE object?
Best regards,Marc Dirix