SHARE
TWEET

Untitled

a guest Sep 16th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top