4 ms·
FWIW, Bash has this built in; cat </dev/tcp/www.google.com/80 It's unfortunately disabled in the bash that ships with debian, but should work pretty much
by moe 16y ago
FWIW, Bash has this built in;
cat </dev/tcp/www.google.com/80
It's unfortunately disabled in the bash that ships with debian, but should work pretty much everywhere else.
- dododo 16y agoawk has something similar too: The following special filenames may be used with the |& co-process operator for creating TCP/IP network connections. /inet/tcp/lport/rhost/rport File for TCP/IP connection on local port lport to remote host rhost on remote port rport. Use a port of 0 to have the system pick a port.
- gommm 16y agoIs there anything similar in zsh? That could be quite helpful?
- gnosis 16y agoThere are two much more powerful tcp interfaces built in to zsh: The zsh/net/tcp Module: http://tinyurl.com/3alarxf http://tinyurl.com/3alarxf And zshtcpsys: http://tinyurl.com/32z6bwe http://tinyurl.com/32z6bwe