Created
March 31, 2016 15:53
-
-
Save FUT/924a7f9084e8d981715354bc618a1224 to your computer and use it in GitHub Desktop.
Send email on boot (Ubuntu)
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
sudo apt-get install mailutils | |
crontab -e | |
# And paste following line to crontab settings: | |
@reboot echo "Server has restarted "`hostname` | mail -s "System Restart" [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment