Tag Archive

Tip: Getting Unix command output and status in your email

Published on October 15, 2010 By Ignacio de la Torre
Share

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: