Skip to content

Instantly share code, notes, and snippets.

@TheNeuralBit
Created August 9, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNeuralBit/5b29004bd08cb23565d9 to your computer and use it in GitHub Desktop.
Save TheNeuralBit/5b29004bd08cb23565d9 to your computer and use it in GitHub Desktop.
A simple script using inotify to execute a command whenever a file is modified
#! /bin/bash
while [ 1 ]; do
inotifywait ${2}
${1} ${2}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment