Using Netcat to Watch Port
As I was reverse engineering an internal API today, I found myself waiting for the API service to come back up fairly frequently after re-imaging the cluster I was working on. Rather than run the full API query using
watch, I decided to use Netcat instead. This is for me down the road when I inevitably forget the exact switches to make this work.
watch -n 5 nc -zv $IPADDR $PORT