Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Just write
MAILTO="<mail address>" at the beginning of the cron file
and cron will send emails to the specified address. In this case, you need to make sure that a mail server, such as Postfix, is installed on the server.
such a task will send a message every time the script is executed (or not executed)
MAILTO="[email protected]"
* * * * * /bin/myjob.sh
MAILTO="[email protected]"
* * * * * /bin/myjob.sh > /dev/null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question