I have a bash script and I want to be informed when it crashes. I use this:
sendmail [email protected] < customMessage.txt
Howerer, I just want to receive an email saying either "ok" or "error". Is this possible without extra txt file?
sendmail [email protected] < "HI"
does not work