Na página inotifywait
man:
inotifywait efficiently waits for changes to files using Linux's inotify(7) interface. It is suitable for waiting for changes to files from shell scripts. It can either exit once an event occurs, or continually execute and output events as they occur.
e
-m, --monitor Instead of exiting after receiving a single event, execute indefinitely. The default behaviour is to exit after the first event occurs.
EDIT: Eu tenho um log, que é anexado a cada 15 segundos. O script a seguir executa o while um loop para cada linha produzida por inotifyread:
#!/bin/sh
inotifywait -e modify /tmp/modem_log.csv -m | while read line; do
echo "$line"
echo "Copy coperation here..."
done
No seu caso, você tem que mudar o evento (modificar) para close_write, é claro.