The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-19-2009
yhcheong yhcheong is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 9
Hi Pludi,

Thanks for the suggestion, if running bash. I think it is same by executing below command
for one by one(since I have hundred over telnet connection). The telnet connection port is
2071

% telnet 10.x.x.x 2071

for the bash command
exec 3>/dev/tcp/${10.x.x.x}/2071
if [ $? -eq 0 ]
then
echo "Telnet accepting connections"
else
echo "Telnet connections not possible"
fi

It seems like not working.

bash: /dev/tcp/${10.x.x.x}/2071: bad substitution.


Do you have any idea which can lead me to run the script in one shot, and the output is the hundred over telnet connection status. THanks in advance!