3 ms·
Bunch of suggestions here https://stackoverflow.com/questions/4060212/how-to-run-a-shell-script-when-a-file-or-directory-changes https://stackoverflow.com/quest
by wmf 7y ago
Bunch of suggestions here https://stackoverflow.com/questions/4060212/how-to-run-a-shell-script-when-a-file-or-directory-changes https://stackoverflow.com/questions/4060212/how-to-run-a-she... https://superuser.com/questions/181517/how-to-execute-a-command-whenever-a-file-changes https://superuser.com/questions/181517/how-to-execute-a-comm...
Also apparently systemd can do something like this. "DirectoryNotEmpty= may be used to watch a directory and activate the configured unit whenever it contains at least one file." https://www.freedesktop.org/software/systemd/man/systemd.path.html https://www.freedesktop.org/software/systemd/man/systemd.pat...
The keyword is inotify since that's the (Linux) API that allows watching files/directories.