のメソッドシェル、私はこのは、Linuxでファイルを監視するにはOSX
#!/bin/bash
# with inotify-tools installed, watch for modification of file passed as first param
while inotifywait -e modify $1; do
# do something here
done
のようなのinotify-ツールを使用していますが、どのように私はOSXでこれを達成することができますか?
これはシェルスクリプトで使用できますか? –
いいえ、しかし、Python用のラッパーライブラリがあります:http://pypi.python.org/pypi/MacFSEvents/0.2.4 – Baversjo