Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if netstat -pant | grep -q kmess ; then
  4. exit 0;
  5. else
  6. until false; do
  7. `kmess`
  8. echo "Kmess was closed , and reopened" | mail -s Reopen_kmess kad@kad
  9. sleep 60 ;
  10. if netstat -pant | grep -q kmess; then
  11. echo "Kmess is running and connecting" | mail -s Back_Kmess kad@kad
  12. fi
  13. done
  14. fi
Add Comment
Please, Sign In to add comment