Tag Archive

Tip: Getting Unix command output and status in your email

Published on octubre 15, 2010 By Ignacio de la Torre

I have a scheduled script that refreshes some of my materialized views but sometimes these operations could fail if the database backup takes too long or an unexpected condition presents. This led me to think of sending the output of my refresh procedures to my email or my team’s listserv, here are sample versions of my scripts: