Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: not able to reach to the prompt while using Net::Telnet

by vitoco (Friar)
on Dec 09, 2009 at 12:06 UTC ( #811904=note: print w/ replies, xml ) Need Help??


in reply to not able to reach to the prompt while using Net::Telnet

Try this:

$t->waitfor('/"Are you sure to continue\? \(Y\/N\)\? : "/');

UPDATE: Are quotes being displayed on a terminal session? If not, try:

$t->waitfor('/Are you sure to continue\? \(Y\/N\)\? : /');

Is any artifact in use like bold, blinking or colored text? Then, you must add some wildcards somewhere to match escape sequences.


Comment on Re: not able to reach to the prompt while using Net::Telnet
Select or Download Code
Re^2: not able to reach to the prompt while using Net::Telnet
by godsown (Novice) on Dec 09, 2009 at 13:28 UTC
    the actual message does not contain quotation marks.. but even wen i try without the quotations, it fails at the same line with same error: "pattern match timed-out"..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-12-28 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls