Telnet command is giving different output on terminal and .sh script

前端 未结 0 1097
眼角桃花
眼角桃花 2021-02-08 03:16

I have a small .sh script, as below (ignore /dev/null , that\'s a hack I am using;

#!/bin/bash

while read host port; do

echo `timeout 5 telnet $host $port 

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题