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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Script to auto login to telnet session

Reply to Message Icon

Name: Colin
Date: February 5, 2002 at 18:57:00 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: kendel
Date: February 12, 2002 at 05:25:24 Pacific
Reply:

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


0

Response Number 2
Name: kapil goel
Date: April 23, 2002 at 08:49:58 Pacific
Reply:

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


0

Response Number 3
Name: Abhinav Tandon
Date: May 13, 2002 at 23:28:53 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Script to auto login to telnet session

Unable to telnet Sun Sparc M/C www.computing.net/answers/unix/unable-to-telnet-sun-sparc-mc/3178.html

Remote script to chmod www.computing.net/answers/unix/remote-script-to-chmod/7397.html

Expect script to su and run passwd www.computing.net/answers/unix/expect-script-to-su-and-run-passwd/6154.html