sudo pip install watchdog watchmedo shell-command \ --patterns="*.html" \ --recursive \ --command="~/bin/rebuild_my_documentation.py --docpath=~/docs/" \ ~/docs/