Last active
July 1, 2020 13:28
-
-
Save michael-simons/433ae7da647d14135c73d44ee965f6a0 to your computer and use it in GitHub Desktop.
A bash script waiting for port 7687 to become available without netcat or similar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
until (exec 3<>/dev/tcp/127.0.0.1/7687) &>/dev/null; do | |
echo "Try again" | |
sleep 1s | |
done |
Oh and I actually noticed that one time pushing the button actually went through.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh wow, @mkhl, you rock :)
The only thing I can answer right now is the typo: Damn! The rest, I have to read up.
I was inclined to replace the script with you fork, but yesterday, GH had it's own issues (lots of 500er).