gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: telnet wrapper
by marto (Cardinal) on Jan 23, 2006 at 13:38 UTC | |
|
Re: telnet wrapper
by turo (Friar) on Jan 23, 2006 at 13:46 UTC | |
by gri6507 (Deacon) on Jan 23, 2006 at 13:58 UTC | |
by turo (Friar) on Jan 23, 2006 at 18:31 UTC | |
|
Re: telnet wrapper
by traveler (Parson) on Jan 23, 2006 at 16:33 UTC |