Our great sponsors
-
inotify-tools
inotify-tools is a C library and a set of command-line programs providing a simple interface to inotify.
-
fswatch
A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
inotify-tools should be able to help, you can use inotifywait to watch for file system changes in a directory and run a command when something changes.
I had good luck with fswatch last time I did something like this. Same principle as what /u/balloonanimalfarm links, but it's cross-platform. It also uses the inotify API on linux, but others on different OSes.
Related posts
- MakeMake: Generate make files from C source code
- Suite for keeping track of file system changes
- Are there any CLIs or good ways on macOS to real-time / continuously sync two folders on the same drive?
- Here's the tool that automatically restarting your process when file changes in the selected directory
- Using NFS in a distributed synchronous processing