Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while :;do
- clear
- netstat -t | grep ESTABLISHED
- if netstat -tn | grep -v 192.168.0.78:22 | grep 192.168.0.97; then
- echo "Se detecto la conexion del host 192.168.0.97"
- break
- fi
- sleep 0.5
- done
- echo Se termino el programa
Advertisement
Add Comment
Please, Sign In to add comment