Superlman has asked for the wisdom of the Perl Monks concerning the following question:
What I'd like to do is put an additional layer in between Telnet and me: Basically, it would be a perl script which takes my input, does whatever I want to it (substitute predefined strings with a long command, for example) and return the output (after, say, putting all instances of my name in red or something), ready to take more.
I've learned enough perl by now to handle the regexes and so forth. What I need help with is talking to telnet. Can I both send input to and receive output from Telnet simultaneously, or must it be back-and-forth one way? I'm willing to settle for half-duplex if nothing else.
Anyone?
Thank you!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Sending to and receiving from Telnet
by lshatzer (Friar) on Jul 23, 2001 at 22:40 UTC | |
by Superlman (Pilgrim) on Jul 23, 2001 at 23:12 UTC | |
by lshatzer (Friar) on Jul 23, 2001 at 23:16 UTC |