View Single Post
Old 06-02-2016, 11:55 AM   #10
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Years ago, I tried "inotify" on a kindle, but it was mostly useless. Files changed without detection. Not sure if there is a reliable way other than to see if the logfile timestamp or size has changed, by periodic polling. Though you could try inotify again (but it may require linux kernel support). Others have discussed this issue as well:

How to notice log file changes with Linux standard tools?

In Linux, how do I run a shell script when a file or directory changes

https://en.wikipedia.org/wiki/Inotify

Like I said, inotify did not work for me (but that was years ago), so tools based on inotify are likely to be unreliable too. YMMV

Last edited by geekmaster; 06-02-2016 at 12:00 PM.
geekmaster is offline   Reply With Quote