Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am eallrich on github.
  • I am eallrich (https://keybase.io/eallrich) on keybase.
  • I have a public key ASCXp41sAEpORERlVA_-jXnmpb6bpX-Oky8s9Q4DcCGM0Qo

To claim this, I am signing this object:

@eallrich
eallrich / onchange.sh
Created December 11, 2011 03:50 — forked from senko/onchange.sh
Watch current directory and execute a command if anything in it changes
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <senko.rasic@dobarkod.hr>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of