【发布时间】:2011-10-21 06:17:45
【问题描述】:
要在 linux 中监控文件,我可以像这样使用 inotify-tools
#!/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
但我如何在 OSX 中实现这一点?
【问题讨论】:
标签: file macos watch inotify-tools