Skip to navigation
How to detect if a file get closed or changed and than execute a python scripts after
19.08.14
you need inotify-tools install with apt: apt-get install inotify-tools example with closed file (-e CLOSE) inotifywait -e CLOSE -m /path/to/file/ | while read f; do /usr/bin/python test.py; done
http://linux.die.net/man/1/inotifywait
Reply
Anonymous
Information Epoch 1732542079
Distrust all claims for one true way.
Home
Notebook
Contact us