3 ms·
Same; I made a ~/bin/telnet that does: #!/bin/sh nc -v "$1" "${2:-23}" Obviously it doesn't do the telnet protocol when run on port 23 (note the real
by dgl 3y ago
Same; I made a ~/bin/telnet that does:
#!/bin/sh
nc -v "$1" "${2:-23}"
Obviously it doesn't do the telnet protocol when run on port 23 (note the real telnet client disables the telnet handshake when port != 23, which is why it's useful as a generic TCP client anyway), but this basically keeps my muscle memory happy and it's clear from the output what's happening.
- JdeBP 3y agoSomeone with initials "DJB" did much the same thing in 1999. (-: % cat /package/admin/djbwares/command/mconnect #!/bin/sh # WARNING: This file was auto-generated. Do not edit! exec /usr/local/bin/tcpclient -RHl0 -- "${1-0}" "${2-25}" /usr/local/bin/mconnect-io % * https://jdebp.uk/Softwares/djbwares/guide/commands/mconnect.xml https://jdebp.uk/Softwares/djbwares/guide/commands/mconnect.... * https://jdebp.uk/Softwares/djbwares/guide/commands/mconnect-io.xml https://jdebp.uk/Softwares/djbwares/guide/commands/mconnect-... * https://jdebp.uk/Softwares/djbwares/guide/commands/finger@.xml https://jdebp.uk/Softwares/djbwares/guide/commands/finger@.x... * https://jdebp.uk/Softwares/djbwares/guide/commands/who@.xml https://jdebp.uk/Softwares/djbwares/guide/commands/who@.xml