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

bash-5.0: warning: /dev/(tcp|udp)/host/port not supported without networking #32

Open
karawitan opened this issue Jan 15, 2020 · 2 comments

Comments

@karawitan
Copy link
Collaborator

Hi Blackberry 10 believers !

While trying to open a tcp socket using bash-5.0 on bb10, I hit the following issue:

bash-5.0$ exec 3<>/dev/tcp/www.eff.org/80
bash: warning: /dev/(tcp|udp)/host/port not supported without networking

Is there any hope to have this feature working on bb10 ?
Or maybe we should get "nc" instead ?

@vaskas
Copy link
Member

vaskas commented Jan 16, 2020

What are you trying to achieve? The above command also doesn't work on mksh: can't create /dev/tcp/www.eff.org/...

@karawitan
Copy link
Collaborator Author

karawitan commented Jan 16, 2020

This syntax would be used to open an http request to www.eff.org on port 80.
There is such example here: (talking SMTP over port 25 using bash, without a telnet or nc client)

image

(taken from https://stackoverflow.com/questions/49179707/tcp-socket-server-in-bash)

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