Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Net::Telnet + command promptby regexes (Hermit) |
on Mar 07, 2008 at 10:12 UTC ( [id://672727]=note: print w/replies, xml ) | Need Help?? |
Hello,
To expand on NetWallah's response... I find it easier to set my own prompt. That way you always know what's being returned. Look at Net::Telnet --> method: prompt Here's an example: I don't what you're programming/developing but another thing you might want to be aware of is the trickiness of Microsoft's own "telnet server". See the Net::Telnet documentation under the heading: Connecting to a Remote MS-Windows Machine 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
|
|