#!/bin/tcsh #echo archive_alerts_helper # This is a nice trick to make sure that all of the processes spawned by archive_alerts_helper.1 all finish # before this script returns. #./archive_alerts_helper.1 | cat # Get rid of the non-error messages. Only send an email if there is an error. ./archive_alerts_helper.1 | grep -v '^\[[0-9]\+\] [0-9]\+$'