On 01/09/2014 05:23 AM, Cameron Norman wrote:
>>>>    Description     : Run arbitrary commands when files change
>>>
>> This description doesn't exactly sell it. Why should entr be used
>> instead of inotifywait?
> 
> It seems to be:
> 
> 1. available on BSD
> 2. easily callable and usable from the shell

Compare:

while echo file | inotifywait --fromfile - -q; do command; done

to

echo file | entr command

(I've used echo file here since entr accepts a file list from stdin).

Auto-rebuild of your sources?

find . -type f -ipath "*.[ch]*" | entr make

I was using a shell wrapper over inotifywait before discovering entr.



-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/lamo2b$5rv$1...@ger.gmane.org

Reply via email to