Hacker News new | ask | show | jobs
by kseistrup 4695 days ago
I'm aware that it's beyond the scope of cel, but I'd use incron anyday for jobs like this.
2 comments

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/