Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Does not work. Records are constantly being made to the file, literally every second. At some point, incorrect data comes in, after which the program starts to read it incorrectly. And as I suppose, incorrect data is written exactly at the moment the program is closed.
If I close the program, then what should I compare it with?
It really depends on the file type. But if the data is only being written, you can periodically check the size or number of lines in the log file with a script, and then use this data to calculate what exactly has been changed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question