Madhavi Suram wrote: > I want to do something like this using telnet. In my program, I will > connect a socket to the telnet server on another machine. I will send some > command(for example, "pwd") to the telnet server as it is, without adding > any telnet command codes(just the string "pwd"). Will telnet accept such > commands and respond to them? Or is this possible by doing some extensions > to this trivial program like - by negotiating some options with the > telnet server before sending the commands? The problem is, I don't want to > write the whole telnet client again :) Bear in mind that the telnet server will attempt to negotiate various telnet options with the client. So the client will need to be able to accept such requests and, at a minimum, provide a WONT response. -- Glynn Clements <glynn.clements@virgin.net> - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html