Ive written a shell script that telnets for me: Basically theres about 300 sites that I may need to dial in to, so rather than have a list of there IP address I run a program that lets me telnet using the site name instead.Its called "net" and the context would be at a hash:
net port
The program would search its Database for the string "port" bring back the mataches, you would select which one and the it would telnet to the server for you.(after a ping response from the router and server)
Anyway back to your question, within the shell script surely you would just add "telnet ip_num" or do you want it to add the password for you?