I have a Server where Calculations are being executed, they take sometimes days to finish. I would like to send an e-mail when the job is finished, maybe through a script or even with the |
.
Before getting to the technical/command part I'd like to know what are the concepts managed to do this.
- What do I need to achieve this? (Local MTA configurations for example? etc.)
I've read many blogs, even here in AskUbuntu, but they were from 2012, or 2014, suggesting
sendmail, mutt, postfix, at
... and many answers said "that's deprecated", "is no longer used", etc. or at least that's what I've understood.- So, what could you recommend to archive this with a 2017-2018 solution?
Thanks.
Mailx still works. Try this.
This will send an email with the subject Test01 to the mcjorch account on the local machine. The body will be whatever was read in from stdin.
You can do other things to get mail forwarded to some other email address (i.e. forwarding). You need to know what your mail system is to know how to configure that stuff.
Hope this helps.