Created
February 9, 2015 14:25
-
-
Save ryanoboril/61bcc7474820d812512b to your computer and use it in GitHub Desktop.
Sending email when something finishes or stops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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