omo obter os métodos shell inotify-tools do linux no osx
Para monitorar um arquivo no linux, posso usar ferramentas inotify como esta
#!/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
mas como eu conseguiria isso no OSX?