700*_*are 1 telnet tcp utilities
有时telnet
用于测试非 telnet 服务器,例如 HTTP 或 SMTP 服务器,其中 TELNET 协议通常不受影响。但是,我想我在调试 TCP 服务器时遇到了这种情况。我跑了
telnet 本地主机 < 数据文件
服务器接收到的数据与文件中的数据不同。
是否有 telnet 选项或我可以使用的整个其他命令?
如果它必须单独安装,那么我不想要它。我会做没有。
嗯,实际上它被称为netcat
并且不是 Solaris 内置的。但是,如果您使用 bash 或 zsh(或可能是其他东西),您还有另一种选择:
男人猛击:
Run Code Online (Sandbox Code Playgroud)Bash handles several filenames specially when they are used in redirections, as described in the following table: … /dev/tcp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, bash attempts to open a TCP connection to the corresponding socket.
归档时间: |
|
查看次数: |
8008 次 |
最近记录: |