3 ms·
Thanks, 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 t
by amenod 8y ago
Thanks, 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.