

e, -exclude=REGEX Exclude paths matching REGEX. 1, -one-event Exit fsw after the first set of events is received. 0, -print0 Use the ASCII NUL character (0) as line separator. Additional Options for fswatch version 1.x Usage: However, if that is the case, you should probably just check out homebrew. If you don't have a c compiler on your system you may need to install Xcode or Xcode command line tools - both free. Type these commands in Terminal.app cd /tmp The older way for versions 0.x: fswatch ~/path/to/watch ~/script/to/run/when/files/change.shĪs of 9/12/13 it was added back in to homebrew - yay! So, update your formula list ( brew update) and then all you need to do is: brew install fswatch The new way that can watch multiple paths - for versions 1.x and higher: fswatch -o ~/path/to/watch | xargs -n1 -I anywhere in your command. Update: fswatch can now be used across many platforms including BSD, Debian, and Windows. Inotify-tools package on most distributions) provides similar When an event about any change to that directory is received, the specified Fswatch is a small program using the Mac OS X FSEvents API to monitor a directory.
