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-changesinotifywait -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