Watch directory for changes
Watching directory for changes can be useful for example let's say you have a markdown based knowledgebase and want to automagically rebuild statically served html-site. Like this one right here!
Script
Use #bash and make a fancy scriptie using inotify-tools
. This can be installed from debian repos using sudo apt install inotify-tools
. For example this #mkdocs site uses following at the time of writing:
sleep
ing to ratelimit things or a more complex script to even wait no more changes are detected for some time...