The Computer Oracle

How to execute a command whenever a file changes?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping

--

Chapters
00:00 Question
01:18 Accepted answer (Score 555)
02:51 Answer 2 (Score 256)
04:05 Answer 3 (Score 146)
04:34 Answer 4 (Score 72)
05:05 Thank you

--

Full question
https://superuser.com/questions/181517/h...

Accepted answer links:
[inotifywait]: https://github.com/rvoicilas/inotify-too...
[incron]: http://inotify.aiken.cz/?sectio
[fswatch]: https://emcrisostomo.github.io/fswatch/

Answer 2 links:
https://github.com/eradman/entr

Answer 3 links:
[when-changed]: https://github.com/joh/when-changed

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #unix #shell #script

#avk47