![]() |
|
|
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 |
| Telnet in a script | insania | Shell Programming and Scripting | 5 | 04-15-2007 02:32 PM |
| telnet through script | arun.viswanath | UNIX for Dummies Questions & Answers | 1 | 03-26-2006 01:33 PM |
| ksh telnet script | rwunwla | Shell Programming and Scripting | 5 | 12-16-2005 09:22 AM |
| telnet in a script | vaccari | UNIX for Dummies Questions & Answers | 10 | 10-10-2001 12:37 PM |
| telnet in a script | vaccari | IP Networking | 4 | 12-15-2000 03:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using Telnet in a script
Hi All,
I was trying to use telnet in a script to access a certain processor on a certain port to view some processes. The problem is that when I use telnet the output is displayed for me. The script is: #!/bin/sh cd /ahmed/ezzat/ rm ss7trace.log touch ss7trace.log chmod 755 ss7trace.log telnet 172.16.0.9 8100 ps > result quit At the line of telnet I get an output: Trying 172.16.0.9... Connected to 172.16.0.9. Escape character is '^]'. U-Qtil> but thats not what I want. I want the script to telnet to the processor then do ps and write the result in the result file then quits without giving me the output of telnet to type ps. Can anyone help me regarding this, I will be so thankful. Best Regards, Ahmed. |
|
||||
|
hi,
rsh and ssh are not working, for my case I have to telnet on a processor on a certain port. I have one feedback regarding my case, is that after I run the script I get: Trying 172.16.0.9... Connected to 172.16.0.9. Escape character is '^]'. U-Qtil> and then the ps command is done on the local server not the one I am telneting to. I want to do ps on the remote server and print its output in the result file on the local server. BR, Ahmed. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|