Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -z $1 ]; then
- echo "Uso: $0 <ip>|<hostname>"
- exit
- fi
- if [ $1 = "--help" ]; then
- echo ""
- echo "Ping test version 1"
- echo "Uso: $0 <ip>|<hostaname>"
- echo ""
- exit
- fi
- while true; do
- clear
- ping -c 1 $1 &> /dev/null
- if [ $? != 0 ];then
- echo "conexion interrumpida"
- break
- fi
- done
- echo "se interrumpio la conexion, contacte con el administrador"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement