On Tue, Oct 14, 2003 at 08:19:12PM +0200, Ernest Beinrohr wrote: > Hi, I'm trying to glue together an console application with readline > extension (=I can edit the line befor I enter it). How can I make it > work with Net::Server ? > > The readline package is "running" on the server size, although it should > run on the client side after he telnets to a port.
The easiest thing would be to forget about Net::Server and use telnet or ssh to launch the server script directly. That way tcpd or sshd will allocate the pseudo-terminal and negotiate with the client application (ssh or telnet) and you can just write a console app without worrying about the networking stuff. The next-easiest thing would be to forget about telnet and write a client-side script to interact with the user via Term::Readline and then send each completed line to the server-side script. That way you write a regular console application *and* a regular TCP server, but both of them are simple and well-supported by CPAN. Anything else is probably too complicated to bother with. -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]