Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OUT=`ping -c 1 $1 | grep "icmp_seq"`
- if [[ -n $OUT ]]; then
- echo "Host ping"
- else
- echo "Host not ping!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement