#!/bin/sh
touch telnetRes.log
for ip in `cat $1`
do
format=`echo $ip|awk -F ‘:‘ ‘{print $1,$2}‘`
{ echo "quit";sleep 1; }|telnet $format >> telnetRes.log
#echo $format
done
时间: 2024-10-13 18:00:42
#!/bin/sh
touch telnetRes.log
for ip in `cat $1`
do
format=`echo $ip|awk -F ‘:‘ ‘{print $1,$2}‘`
{ echo "quit";sleep 1; }|telnet $format >> telnetRes.log
#echo $format
done