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.