telnet成功或者超时自动退出
# timout_second:超时时间,秒# host: 域名# port: 端口echo -e '\x1dclose\x0d' | timeout --signal=9 {timout_second} telnet {host} {port}
·
# timout_second:超时时间,秒
# host: 域名
# port: 端口
echo -e '\x1dclose\x0d' | timeout --signal=9 {timout_second} telnet {host} {port}
更多推荐
已为社区贡献1条内容
所有评论(0)