Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: using NET::TELNET waiting for login prompt

by Illuminatus (Curate)
on Aug 15, 2012 at 23:34 UTC ( #987657=note: print w/replies, xml ) Need Help??

in reply to using NET::TELNET waiting for login prompt

Did you look at the documentation for Net::Telnet? It gives you several things to try (like using dump_log() or input_log()). If you did use those, what did they tell you? Are you sure that there's just a single space after the < in the prompt? Your regexp will only match a single space and the EOL. If there are no spaces or more than one, it won't match


  • Comment on Re: using NET::TELNET waiting for login prompt

Replies are listed 'Best First'.
Re^2: using NET::TELNET waiting for login prompt
by Altiokis (Initiate) on Aug 15, 2012 at 23:49 UTC
    Here's what the input.log shows
      Assuming the ^H at the end is part of the data received by your program, then that's what's causing the failure. You could try
      ... Prompt => '/[\$#%:><][\s\b]+$/ ...
      If that doesn't work, the output from dump_log() might also be helpful.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987657]
[choroba]: Good morning! I'll be mostly absent today, a day off at work, children have concerts and other activities...
[Corion]: Hi choroba! Yay, day off sounds great! I hope the performances of the kids go well!

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-12-12 08:49 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.