Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > #!bin/bash
- >
- > DATE=`date +%Y%m%d`
- >
- > touch opt/logs_$DATE
- >
- > sanity >> opt/logs_$DATE
- >
- > if [ grep -q ' Application Check Failed' opt/logs_$DATE -eq 1 ] ; then
- >
- > echo "False Alarm "| mailx -s "False alarm" abc@gmail.com
- >
- > rm -f opt/logs_$DATE
- >
- > else
- >
- > { echo 7; yes c; } | start
- >
- > echo " Failure resolved
- > Below are the processes running
- > $sanity " | mailx -s " Failure resolved " abc@gmail.com fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement