I have a cron job that runs every 15 minutes that runs a php script which broadcasts any email campaigns that have been scheduled. The command is:
It works fine, but the only problem is that I am emailed the output everytime the script runs. You can imagine that they can build up being sent every 15 mins of every day! The emails are almost always blank as the script runs with no errors. However, what I would really like is to only be emailed when an error has occured, and so the cron output would not be blank. Is there anyway to modify the cron job command to make this happen?
Code:
lynx -dump http://www.*******.co.uk/scripts/broadcast.php
It works fine, but the only problem is that I am emailed the output everytime the script runs. You can imagine that they can build up being sent every 15 mins of every day! The emails are almost always blank as the script runs with no errors. However, what I would really like is to only be emailed when an error has occured, and so the cron output would not be blank. Is there anyway to modify the cron job command to make this happen?