On Sunday, October 13th chibiko said...
This is a solution to the problem about acting on a log file as it is being written to, without much of a hassle.
I love python as much as the next guy, heck I even contributed to it and wrote a bbs in python -- but maybe I can provide a counter-hack, that less(1) has the ability to "tail -F" a logfile builtin. And less(1) can also match patterns.
Open a logfile with less, like "less log.txt", and press "F" to start "following" the file.
At any time, you can press ^C, it won't stop the program, it will only stop following.
You can then search. Since you're on the bottom of the file its probably best to search backwards with "?searchterm" but "/searchterm" is also fine.
Anyway I used Linux and less for 20 years until I learned to stop executing tail, then stopping it to execute less or vi. Also you can open a file from less in your editor with 'v', so anyway its a good program to start with.
--- ENiGMA 1/2 v0.0.14-beta (linux; x64; 18.18.2)
* Origin: Xibalba -+- xibalba.l33t.codes:44510 (911:1801/0)