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

nc hang in ubuntu container #18

Closed
zhoupro opened this issue Oct 2, 2018 · 3 comments
Closed

nc hang in ubuntu container #18

zhoupro opened this issue Oct 2, 2018 · 3 comments

Comments

@zhoupro
Copy link

zhoupro commented Oct 2, 2018

use nc -q 1

nnoremap y :call system('nc -q 1 host.docker.internal 8377', @0)

@wincent
Copy link
Owner

wincent commented Oct 2, 2018

Just to clarify, is that an example of a command which hangs, or a command which avoids a hang?

@zhoupro
Copy link
Author

zhoupro commented Oct 2, 2018

when use nc hostip hostport; the command will hang. add "-q 1", the command will exit after 1 sec.
I use nc [v1.10-41.1]. I also found nc is so mess.

@wincent
Copy link
Owner

wincent commented Dec 18, 2018

Maybe try the -N switch as suggested in the docs?

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

2 participants