Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. > #!bin/bash
  2. >
  3. > DATE=`date +%Y%m%d`
  4. >
  5. > touch opt/logs_$DATE
  6. >
  7. > sanity >> opt/logs_$DATE
  8. >
  9. > if [ grep -q ' Application Check Failed' opt/logs_$DATE -eq 1 ] ; then
  10. >
  11. > echo "False Alarm "| mailx -s "False alarm" abc@gmail.com
  12. >
  13. > rm -f opt/logs_$DATE
  14. >
  15. > else
  16. >
  17. > { echo 7; yes c; } | start
  18. >
  19. > echo " Failure resolved
  20. > Below are the processes running
  21. > $sanity " | mailx -s " Failure resolved " abc@gmail.com fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement