#!/bin/sh

while inotifywait --recursive --event CLOSE_WRITE . > /dev/null 2>&1
do $@
done