News for hackers. Stuff that matters.
Re:Show HN: Execute a shell command each time a given file o... by kseistrup on Monday August 05, 2013 @11:30AM (#6160664)
I'm aware that it's beyond the scope of cel, but I'd use incron anyday for jobs like this.
Re:Show HN: Execute a shell command each time a given file o... by stephenr on Monday August 05, 2013 @11:41AM (#6160755)
A better approach surely would be to wrap inotify/osx fsevents
Re:Show HN: Execute a shell command each time a given file o... by lotsofcows on Monday August 05, 2013 @11:54AM (#6160842)
That's what incron does...
Re:Show HN: Execute a shell command each time a given file o... by stephenr on Monday August 05, 2013 @08:52PM (#6164211)
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
Re:Show HN: Execute a shell command each time a given file o... by dinduks on Monday August 05, 2013 @11:32AM (#6160685)
Inotify is specific to Linux, while CEL isn't OS dependent.
Re:Show HN: Execute a shell command each time a given file o... by osth on Monday August 05, 2013 @01:05PM (#6161305)
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/