I'm not 100% sure this is what you are asking (you just want to automatically log in 
right?), but you can try an expect script (usual warnings about having a password in a 
script lying around apply).

---begin login.expect--cut here---
#!/usr/bin/expect --
set timeout 20
spawn telnet server.myhost.com
expect "ogin:"
send "myusername\r"
expect "assword:"
send "mypasword\r"
interact
---end login.expect--cut here----

> I wish to script a telnet command and would like to know if it is possible to 
> automate the giving of credentials. The service I am trying to connect to 
> does not support the TELNET ENVIRON option so I cannot do as the manual page 
> suggests. Perhaps I misunderstood but if anyone has any suggestions let me 
> know. Perhaps there are applications similar to "yes" that I can use to give 
> the credentials to telnet.

-- 
------SupplyEdge-------
Greg Hunt
800-733-3380 x 107
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to