Hi All I have a system that has a standard telnet username password prompt to get access. Lets call this system X.
I also have a bit of software that can telnet to a port and performs a logging function. ( Records everything typed and printed on the console ). It also has a set of pattern based rules that can fire certain actions when certain stings are seen from system X.
The only problem with this piece of software is that it DOES NOT handle username and password prompts. Now - i hear you cry - thats rubbish. Yes is it but i've got to use it.
The idea : I create a process that sits between system X and the console. The process acts as both a telnet server and client. The client side performs a telnet onto the console using net::telnet which can handle the username password problem very nicely. The server side of the process creates a listen port using IO::socket into which the logging software can connect without a username password.
lines typed by the user from the logging software that arrive on the io::socket will simply be forwarded to the net::telnet connection. anything being printed on the console arriving from the net::telnet port will be forward back through the io::socket.
One slight complication is that events can occur on system X even if the user has not typed anything.
Has anyone written anything like this ?
wertert

In reply to telnet passthrough by wertert

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.