Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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


Is there anything similar in zsh? That could be quite helpful?


There are two much more powerful tcp interfaces built in to zsh:

The zsh/net/tcp Module:

http://tinyurl.com/3alarxf

And zshtcpsys:

http://tinyurl.com/32z6bwe




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: