Computing.Net > Forums > Unix > Script to auto login to telnet session

Script to auto login to telnet session

Reply to Message Icon

Original Message
Name: Colin
Date: February 5, 2002 at 18:57:00 Pacific
Subject: Script to auto login to telnet session
Comment:

Hi, Anyone knows how to write a script to telnet into a server, log in, and run some commands?
THanks.


Report Offensive Message For Removal


Response Number 1
Name: kendel
Date: February 12, 2002 at 05:25:24 Pacific
Subject: Script to auto login to telnet session
Reply: (edit)

hi colin,

this is working for ftp but i din't try with telnet.
maybe you can try and tell me if it works with telnet too

k

ftp -n 22.0.0.170 <user name password
dir
EOF


Report Offensive Follow Up For Removal

Response Number 2
Name: kapil goel
Date: April 23, 2002 at 08:49:58 Pacific
Subject: Script to auto login to telnet session
Reply: (edit)

hi,

I already tried with

ftp -v -n IP but it not works with telnet.

but it prompts for password only

telnet -a IP

reply soon

regards
kapil


Report Offensive Follow Up For Removal

Response Number 3
Name: Abhinav Tandon
Date: May 13, 2002 at 23:28:53 Pacific
Subject: Script to auto login to telnet session
Reply: (edit)

Hi
We can use "expect" tool of
TCL language for automate the
login session over telnet
Regards
Abhinav


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Script to auto login to telnet session

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge