Sam Hames

Ready for a holiday.

linux - How to execute a command whenever a file changes? - Super User

https://superuser.com/questions/181517/how-to-execute-a-command-whenever-a-file-changes

inotifywait -q -m -e close_write myfile.py | while read -r filename event; do ./myfile.py # or "./$filename" done

Tags

Related By Tags

Details

Revised
Created
Edited