Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if netstat -pant | grep -q kmess ; then
- exit 0;
- else
- until false; do
- `kmess`
- echo "Kmess was closed , and reopened" | mail -s Reopen_kmess kad@kad
- sleep 60 ;
- if netstat -pant | grep -q kmess; then
- echo "Kmess is running and connecting" | mail -s Back_Kmess kad@kad
- fi
- done
- fi
Add Comment
Please, Sign In to add comment