Using CentOS. I have a cron setup to run this command:
/var/test.sh | mail -s "Test Cron" firstname.lastname@example.org
The email is sent but the output of the script is not in the email body, it's just blank. I know there is some output because there are some echo statements in the script.
I don't want to get an email for all cronjobs, just this one.