3 ms·
I'm aware that it's beyond the scope of cel, but I'd use incron anyday for jobs like this.
by kseistrup 13y ago
I'm aware that it's beyond the scope of cel, but I'd use incron anyday for jobs like this.
- dinduks 13y agoInotify is specific to Linux, while CEL isn't OS dependent.
- osth 13y agoExcept 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/
- stephenr 13y agoA better approach surely would be to wrap inotify/osx fsevents
- lotsofcows 13y agoThat's what incron does...
- stephenr 13y agoOn 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