Thanks for the reply, Tye!

I'm making newbie errors all over the place here. As it turns out, the ->break() was working fine. I was misinterpreting what I saw in the input log file. I expected a nice human-readable log file based on the Net::Telnet docs, but instead it's filled with extended-ASCII or otherwise garbled text. I originally thought this was the output of the GUI-based app that's auto-launching, but I think instead this is a problem related to terminal character set or somesuch.

The actual problem (the ->cmd timeout) was due to my setting the prompt incorrectly. I set it to the default /[%#>] $/, which would match what I see in an interactive telnet session. However, the log file shows that the server is sending something like "a21R39", which I again suspect is a terminal-type issue. For testing, I set the prompt to /./ and it continued past this point.

BTW, your ->print("\x28") works for a break too. :-) Thanks again. I welcome anyone's thoughts on the prompt issue, but I won't be ticked if I'm ignored. I'll do a little more research before I post on this again.


In reply to Re: (tye)Re: Sending key sequence with Net::Telnet by EyeOpener
in thread Sending key sequence with Net::Telnet by EyeOpener

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.