Skip to content

Instantly share code, notes, and snippets.

@ryanoboril
Created February 9, 2015 14:25
Show Gist options
  • Save ryanoboril/61bcc7474820d812512b to your computer and use it in GitHub Desktop.
Save ryanoboril/61bcc7474820d812512b to your computer and use it in GitHub Desktop.
Sending email when something finishes or stops
RAILS_ENV=production rake db:migrate; echo "Done" | mail -s "Interrupted `date`" [email protected]
this requires mail server to be set up in /etc/ssmtp/ssmtp.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment