![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| oracle connection from shell script | DILEEP410 | Shell Programming and Scripting | 4 | 07-01-2009 03:19 AM |
| sybase connection through shell-script | Amitabh | UNIX for Dummies Questions & Answers | 9 | 04-10-2009 11:34 PM |
| Connection to database through shell script | ravi214u | Shell Programming and Scripting | 1 | 01-08-2009 05:44 PM |
| status bar in shell script or perl | learnbash | Shell Programming and Scripting | 2 | 11-16-2008 11:17 AM |
| Telnet script to test open ports on mult servers | liketheshell | Shell Programming and Scripting | 2 | 02-15-2008 12:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi friends,
I'm newbie to shell script. I wanted to create a shell script which able to write a result for all the telnet connection status. For example, from this machine I want to test the telnet connection (total 100+ servers) with this machine. Any idea how to write this shell script? Appreciate if you guys could help on this. Thanks ! |
|
||||
|
Thanks for the feedback.
The current machine is running on sun solaris OS, it does not has python. The script I want to test is test the telnet connection with other 100+ machines. Is there any shell script? The nmap seems like I need to install on the server. Thanks in advance |
|
||||
|
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! |
![]() |
| Bookmarks |
| Tags |
| grep or |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|