COMMANDDUMP – Monitor File for error – Ding if found
COMMANDDUMPLinux
An Elusive error was occuring that we needed to be notified of immediately. The fastest way to catch it was to run the following script at a bash command prompt so that when the error happened the script would beep until we stopped it.
while true; do ret=`tail -n 1 error-error-main.log|grep -i FATAL `;if [ “$ret” != “” ] ; then echo $ret; echo -en “\0007”; fi; sleep 1; done