Hello, I am running crontab command. I want the output of commands in crontab file to be mailed to me.
I am expecting the output that is printed out on terminal to be mailed to me... For that I am setting the MAILTO environment variable at the beginning of crontab file. MAILTO="<email-id>" But its not working though the commands in crontab file are working fine. Also, if I am having the file say xyz.sh that is being called from cron, its executing and is not sending the results to me.If i remove the xyz.sh from the actual path its not also sending the error message to the mailid. Any suggestions please! With Regards, Rahul Garg.