For simple things, restarting can be good: http://pypi.python.org/pypi/rerun
"Python script command line executable to re-run this command every time files are changed in the current directory or its subdirectories."
This requires a Python interpreter, but still, if your command or files are written in Python.
Usage rerun [--help|-h] [--verbose|-v] [--ignore|-i=<file>] [--version] <command> Where: <command> Command to execute --help|-h Show this help message and exit. --ignore|-i=<file> File or directory to ignore. Any directories of the given name (and their subdirs) are excluded from the search for changed files. Any modification to files of the given name are ignored. The given value is compared to basenames, so for example, "--ignore=def" will skip the contents of directory "./abc/def/" and will ignore file "./ghi/def". Can be specified multiple times. --verbose|-v Display the names of changed files before the command output. --version Show version number and exit.
source share