python inotify 用到的模块 sudo pip install pyinotify sudo pip install functions 使用方法 python inotify.py . & 测试方法 touch file echo "this is a file" >> file