Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Net::Telnet timed out when logging in

by regexes (Hermit)
on Apr 17, 2008 at 12:29 UTC ( [id://681129]=note: print w/replies, xml ) Need Help??


in reply to Net::Telnet timed out when logging in

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.
$string = $obj->last_prompt; $prev = $obj->last_prompt($string);
To set the prompt to your choosing...
$host->login( $username, $password ); my $prompt = "_MYPROMPT_"; $host->prompt("/$prompt\$/"); $host->cmd("prompt = $prompt");
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://681129]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found