With the below advice noted, it is possible to do this with expect.
I've done this so my school wouldn't delete my account when I don't log
into one of their systems for a few days. I then crontabbed the program.
But, as Shaleh says, you need to understand the security problems
associated with this, and look into other solutions first.
On Fri, 27 Nov 1998, Shaleh wrote:
This is generally a bad idea. What are you attempting to do? Something like
rsh or ssh may be a better option.
If you just want to telnet w/o typing your name, there is not a GOOD option.
On 27-Nov-98 Brian Maneikis wrote:
I need help with automatically logging in to a computer with telnet. I want
to use a file with my user name and password stored in it, and have telnet
read theinput from the file using telnet login where login is the file
with my name and password. I've tried this, but it doesn't work. It just
gives me a
Connection closed by foreign host before it even tries to read from the
login
file. I'm not sure what's wrong. Could someone please help me with this.
Thanks in advance. BTW please send replies to [EMAIL PROTECTED] instead
of
replying to the list since I'm no longer subscribed to the list. I hope
some
of this is clear.
--
Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED]
/dev/null
--
Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Brandon
+--- ---+
| Brandon Mitchell * [EMAIL PROTECTED] * http://bhmit1.home.ml.org/ |
| Sometimes you have to release software with bugs. - MS Recruiter |