Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active November 27, 2015 07:48
Show Gist options
  • Select an option

  • Save githubutilities/dd1673e4af68f6a866f8 to your computer and use it in GitHub Desktop.

Select an option

Save githubutilities/dd1673e4af68f6a866f8 to your computer and use it in GitHub Desktop.
Watchdog+Mail

Watchdog+Mail

install watchdog by pip install watchdog

Sending Email

echo "hello world" | mail -s Done <[email protected]>

Send Email On File Changes

watchmedo shell-command --patterns="*.dmg" --recursive --command='echo "${watch_src_path} downloaded." | mail -s Done <[email protected]>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment