Hacker News new | ask | show | jobs
by bpmedley 913 days ago
I wrote a program that waits for a socket response. When I reboot a vm, I use it to know when I can ssh in:

https://github.com/brianmed/SocketFun/tree/main/socketwait

socketwait 192.168.1.10 22 --waitFor TcpRegexResponse --tcpRetries 300 --tcpRegexResponse '^SSH'