#!/bin/sh while inotifywait -e close_write $1; do $2; done