[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#733767: RFS: entr/2.5-1 [ITP] -- Run arbitrary commands when files change



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.



Reply to: