/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash while true; do if nc -w 1 -z $1 $2; then say "server $1 is responding on port $2" exit else echo -n "#" sleep 5 fi done
Comments
