http://www.perlmonks.org?node_id=492917


in reply to Reporting test failures within cron

Ideally, I would like cron to only send mail if any tests fail. I could write a wrapper script to deal with this, but I wonder if you can think of a neater way?

Use a script that somebody wrote earlier :-)