Skip to content

Comment on Show HN: Execute a shell command each time a given file or directory changes

Comments

I'm sure I've seen a nicely crossplatform command-line tool for this, but I can't seem to find it. The closest (by support for non-poll APIs) seems to be 'simplefilewatcher'[1], but that's just a C++ library.

incron, inotify, filewatcher[2], puncher[3], guard[4] are a bunch of existing ones, but they're all either not entirely functional cross-platform, or require some faffing with dependencies to get working.

[1] https://code.google.com/p/simplefilewatcher/

[2] https://github.com/thomasfl/filewatcher

[3] http://rawsyntax.com/blog/puncher-the-simple-file-watcher-fo...

[4] https://github.com/guard/guard

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.