Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if nc is available or give a helpful error #2

Open
elferink opened this issue Jun 13, 2017 · 2 comments
Open

Check if nc is available or give a helpful error #2

elferink opened this issue Jun 13, 2017 · 2 comments

Comments

@elferink
Copy link

When nc is not available you get an "Operation timed out", it should preferrably give a helpful error.

@djeikyb
Copy link

djeikyb commented Jun 21, 2017

Also, there are a few versions of netcat floating around. Notably, the current release of CentOS, and so probably RHEL, use a version without a -z that tests for connectivity. Not sure what the best solution is.. For now, I have a suitable version of curl everywhere I need wait-for. I just replaced the netcat call with:

curl --silent --max-time 2 $HOST:$PORT 2>&1 1>/dev/null

euoia added a commit to euoia/wait-for that referenced this issue May 15, 2018
Use version from:
mrako#2
@ianfixes
Copy link

ianfixes commented Oct 25, 2018

eficode#6 has a fix for this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants