|Do you know where your variables are?|
Re^3: Net::Telnet blocksby roboticus (Chancellor)
|on Jul 19, 2010 at 17:38 UTC||Need Help??|
I just tried it out, and had a similar problem. Using the following code, I tried to connect to a local box:
It was hanging on the login, as you described. When it finally timed out, I got the message:
Well, my local box doesn't have a password on the foo account, so it never prompts for password. I just changed the login line to read:
and it started to work. Perhaps you have the same problem? (I notice that you don't quote the error message anywhere, so I can't tell. The one error message you *did* give was a match timeout from when you were playing with regular expressions.)
You might try logging in step by step with the cmd() function and verify that the login process is working as you expect. Then you can fix the login() call if you find a surprise.
 I don't run Telnet servers (except for the few minutes for this test), so 733t h@X0r2 need not get their hopes up...
 Synonym for "script kiddie".