Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #testping
- # $1 - IP or URL address
- ping $1 -c 3 >/dev/null 2>/dev/null
- if [ $? -eq 0 ]; then
- echo "Pinging!"
- else
- echo "Not pinging!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement