A simple file/directory watcher for Linux and OS X and other BSDs
Haskell
Latest commit c08d1fb Oct 22, 2016 @ehamberg Merge branch 'fix/travis'
Permalink
Failed to load latest commit information.
src COMMAND must have at least one element Oct 11, 2016
.gitignore Build with stack Jan 22, 2016
.travis.yml Adjust travis build script based on `cloud-haskell`'s Oct 22, 2016
LICENSE initial version of watcher -- a simple file watcher Jan 9, 2013
README.md
fswatcher.cabal
stack.yaml Change resolver to LTS 7.4 Oct 18, 2016

README.md

                 ___               _       _
                |  _|___ _ _ _ ___| |_ ___| |_ ___ ___
                |  _|_ -| | | | .'|  _|  _|   | -_|  _|
                |_| |___|_____|__,|_| |___|_|_|___|_|

Build Status

fswatcher monitors a file or a directory for changes and runs a given command when the file is modified. If monitoring a directory, it runs the specified command a file within the given directory is modified.

This is a really thin layer on top of the fsnotify library. It works on Linux, OS X and other BSDs, and Windows (untested).

Usage:

fswatcher --path <file/directory to watch> <command to run> [arguments to command]