Skip to content

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

Comments

I'm aware that it's beyond the scope of cel, but I'd use incron anyday for jobs like this.

A better approach surely would be to wrap inotify/osx fsevents

That's what incron does...

On Linux yes, it doesn't exist on osx though. My point was that the author could have written his tool as cross platform without relying on an 'ls' every 100ms, by using the platform tools availble

Inotify is specific to Linux, while CEL isn't OS dependent.

Except if you account for the fact that some other UNIX-like OS do not use bash as /bin/sh.

You could even say that using bash as /bin/sh "is specific to Linux."

How to fix: /#!\/bin\/bash/s/bash/sh/

AboutSource Built by g1lg1l

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