Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. host=$1
  4. port=$2
  5.  
  6. echo "Attempting to connect to $host:$port"
  7. until nc -z $host $port; do
  8. printf "."
  9. sleep 5
  10. done
  11. echo "Connection to $host:$port is established"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement