Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- host=$1
- port=$2
- echo "Attempting to connect to $host:$port"
- until nc -z $host $port; do
- printf "."
- sleep 5
- done
- echo "Connection to $host:$port is established"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement