Computing.Net > Forums > Unix > telnet through shell script

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.

telnet through shell script

Reply to Message Icon

Name: mehul
Date: January 7, 2003 at 13:55:44 Pacific
OS: sun 5.8
CPU/Ram: sun
Comment:

Hi,

can i do telnet to the remote machine with automatic login and password through shell script ? if yes how

appreciate your help




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: January 7, 2003 at 16:05:45 Pacific
Reply:

Interactive telnet sessions are beyond the scope of most shells. Look at expect.


0

Response Number 2
Name: ilik
Date: January 13, 2003 at 16:32:51 Pacific
Reply:

Yes, I think that's possible.
You need to include the telnet command in shellscript ofcourse and get your username and passwords from another file ( Just a file with username and password ).
Not sure this is going to work, it works with ftp !

so your shellscript looks like this :

telnet machine_name < another_file

another_file looks like this :

username
passwd

You need to consider the security of it.

Good luck !



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Ghost hard drive pass 2 input files to awk...



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: telnet through shell script

telnet through shell script www.computing.net/answers/unix/telnet-through-shell-script/4980.html

telnet & ftp through shell script?! www.computing.net/answers/unix/telnet-amp-ftp-through-shell-script/4850.html

Unix SHELL SCRIPTS www.computing.net/answers/unix/unix-shell-scripts/4885.html