I want to get mail from cron tab if output of it is greater than 100 characters.
For getting mail i had installed the postfix . But what i want to know is it above scenario is possible or not? If it is possible how the script should be?
MAILTO:firstname.lastname@example.org 5 07 * * * /usr/local/bin/curator --dry-run --config /home/itadmin/.curator/curator.yml /home/itadmin/.curator/snapshot.yml 2>&1 | /usr/bin/tee -a /home/itadmin/.curator/logs.txt
By this i am getting email for every output coming out of the above cron job but i want to send a mail only if the crontab output is greater than 100 characters.