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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh and I actually noticed that one time pushing the button actually went through.