3 ms·
It looks like there might be a bug. What happens when you add a new file? A quick scan of the entr help text suggests you should be using the -d flag.
by jfyne 8y ago
It looks like there might be a bug. What happens when you add a new file? A quick scan of the entr help text suggests you should be using the -d flag.
- boulos 8y agoHa! I took too long to format my response :). The entr examples from [1] seem to do the same (ls *.rb for example). [1] http://eradman.com/entrproject/ http://eradman.com/entrproject/
- amelius 8y agoAlso, doesn't entr invoke its command in parallel when there are multiple changes in quick succession? And wouldn't multiple parallel instances of rclone potentially mess up the backup? (I didn't read any of the man pages)
- branweb 8y agoyep...specifically, use the -d flag in a loop since all it does it exits the process when a new file is added: while true; do ls -d src/*.c | entr -d <cmd>; done