Skip to content

Instantly share code, notes, and snippets.

@michael-simons
Last active July 1, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save michael-simons/433ae7da647d14135c73d44ee965f6a0 to your computer and use it in GitHub Desktop.
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.
#!/bin/bash
until (exec 3<>/dev/tcp/127.0.0.1/7687) &>/dev/null; do
echo "Try again"
sleep 1s
done
@michael-simons
Copy link
Author

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).

@michael-simons
Copy link
Author

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