I have a cronjob run by root. This is sending a mail to root which points to firstname.lastname@example.org
The cronjob also sends confirmation of the job to email@example.com
which I want.
Is there a way I can prevent the default cron mail send and just keep below. I dont want to prevent cron mail being received.
0 11 * * * /root/xx.sh | mail -s "`hostname` backup run" firstname.lastname@example.org
Can someone assist please.