How can i control output from crontab? <p>I am trying to run a test case via automation testing (sahi) , so I am running the command for it repeatedly after 1 hour (via crontab).<br> What I want is that is there any solution that <strong>whenever my test case fails i should receive the email otherwise not..</strong> Right now I am reciving mail whether it passes or fails.<br> In short, can i send mail to a person depending upon the output i get in terminal.<br> I want to send mail when output will be:<br> 1 scenario (1 failed) 4 steps (3 skipped, 1 failed) 0m2.476s </p> <p>Thanks.</p>