Watch an arbitary directory, and does the specified command only when it detect some changes in the specified file.