laziness, impatience, and hubris | |
PerlMonks |
Re: Net::Telnet timed out when logging inby regexes (Hermit) |
on Apr 17, 2008 at 12:29 UTC ( [id://681129]=note: print w/replies, xml ) | Need Help?? |
Hello! Update: additional info to glide's post below... See in the Net::Telnet documentation about the last_prompt and dump_log methods. I like to set my own prompt. That way I always know what I should expect. As mentioned in this node Re: Net::Telent - How to get the prompt displayed after login using telnet?... To see what the prompt is, use the last_prompt method. To set the prompt to your choosing... Since I don't exactly what you're doing... you might also want to take a look in the documentation under the Connecting to a Remote MS-Windows Machine section. Hope it helps.. regexes ------------------------- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race. -- Calvin Coolidge, 30th President of the USA.
In Section
Seekers of Perl Wisdom
|
|