I cannot receive the crontab output report by email as an attachment. I tried the following code, but I receive a blank file:
50 * * * * root touch /home/text_created >> /home/log_crontab.txt | mail -s "Email Subject" -a "/home/log_contab.txt" this_is_my_email
It is a really simple test just to run crontab along with its email sending feature. What's the matter with the code above?