I'm not entirely clear on what you're trying to do. Let me see if I can understand this correctly: you script connects to a gateway. A VT100 is also connected to this gateway. Your script sends a command to the gateway to connect you to the VT100 - and here the trouble starts. Correct so far? Assuming the above, the fact that you say that you see the traffic after the connection is closed makes me think you are Suffering from Buffering. Possibly not on your side, but on the gateway.

On the other hand, it could be that you are connected to the VT100, but nobody is typing anything. After all, a VT100 is just a terminal, not an active device.

Also: are you using Net::Telnet::cmd to send your communications to the VT100? If you are, you may be having a problem with a mis-set prompt, or line separator.

Try using Net::Telnet::get or Net::Telnet::getline (both with a timeout set), to see if you get any data that way.

And if it's none of the above, show us some code. It might give us a better idea of what you're trying to do.


In reply to Re: Net::Telnet and VT100 Term Types by matija
in thread Net::Telnet and VT100 Term Types by gridlock

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.