3 ms·
Since it is being used with systemd a systemd path unit could be used to monitor the file system removing the need to use entr.
by tssva 8y ago
Since it is being used with systemd a systemd path unit could be used to monitor the file system removing the need to use entr.
- amenod 8y agoThanks, didn't know systemd can do that [0]! I must grudgingly admit that it seems to be quite useful, though I still don't like having a single app doing all that stuff. But that's off topic... :) [0] https://blog.andrewkeech.com/posts/170809_path.html https://blog.andrewkeech.com/posts/170809_path.html
- tyingq 8y agoBoth path units and entr use the inotify kernel API on Linux. If your needs get more complex, there are python, perl, etc, APIs for the inotify libraries. Also, if you have an older linux distro that predates inotify(), there's similar functionality within auditd that will log changes to a file with a tag of your choosing, then you can tail the file.
- mixmastamyk 8y agodnotify is another older one.