как для реализации методов оболочки inotify-tools linux в osx

Чтобы отслеживать файл в Linux, я могу использовать такие инструменты inotify

#!/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?

7
задан Billy Moon 5 August 2011 в 22:51
поделиться