I've got a lsyncd.conf configured where I've got some custom actions defined, and I was wondering if there's a way to run a command once at the end of a batch of actions? The way I've got it working, now, if I modify 6 files within the local folder monitored by lsyncd, those 6 files get updated on the remote side, and then the collect function runs for each of the 6 updates. I'd like to somehow throttle or batch together the collect function runs such that the 6 actions are done, but then a single command is run once all pending actions complete.
Hopefully that makes sense - is it even possible?
Thanks - Nick