Send mail from

mailx -r user@domain.local -s "test send mail" user@domain.dist

Send mail if connection root

echo "Connection shell root:" `date` `who`| mail -s "`hostname` - connection shell root" destMail

Send mail if command fail

commande.sh || mail -s "command failed X" destMail

Share on: TwitterFacebookEmail


Related Posts


Published

Category

Notes

Tags

Contact