Fellow monks,

Here's my situation. At work we have a piece of hardware running an embedded computer with vxWorks. There are two ways of interacting with the embedded computer: through the serial port and via ethernet over telnet. If CTRL-X is pressed in either of two interfaces to the embedded computer, it reboots. I need to prevent that from happening. I have already plugged the hole for the serial interface (easily done by creating a wrapper to the serial port program called tip in Solaris and capturing CTRL-X events). However, now I must do the same for telnet.

The problem is that I cannot use modules like Net::Telnet because they do not provide all the functionality/interface that regular telnet does. So, I tried interacting with telnet through a wrapper, which basically did open(TEL, "| telnet $arg"); and then passing user commands through the <TEL> handle. This almost worked, except that typing in passwords at login time now became visible. Does anyone have any suggestions on how to work around this one issue? Maybe there's a better way to capture CTRL-X and still have all the functionality of telnet?

Thanks.


In reply to telnet wrapper by gri6507

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.