Well Michael, I do not see how that can solve my problem... I have an application that needs to telnet in to a remote system and run your regular passwd command to set the password, just like in many operating systems. When using TelnetClient class towards the Remote system directly it works fine, but the remote system also is Connected through a serial port to a blackbox, so $ telnet <blackbox ip> <blackbox port> Gets me connected as well, but when using TelnetClient towards this Blackbox, I get an extra newline at every command rendering an empty Password. I.e.
$ passwd<i entered this newline...> Enter password:<This newline is TelnetClient added :)> Confirm password:<my entered password ends up here and a newline of course> Passwords dont match, Confirm password: <This newline is also TelnetClient added :)> $ <here my confirm shows up> Command not found... The fun part is that if I run /usr/bin/telnet instead of TelnetClient >From Java, no extra newlines are added. Explain that someone... Is The java application negotiating itself towards the blackbox as a Windows box, but my linux and solaris boxes /usr/bin/telnet negotiates as Non Windows or what... BR /Daniel -----Ursprungligt meddelande----- Från: Michael Erskine [mailto:[EMAIL PROTECTED] Skickat: den 11 december 2006 13:54 Till: [email protected] Ämne: Re: TelnetClient problem? On Monday 11 December 2006 06:18, Daniel Wikman wrote: > '\r\n' is in > fact a windowze construct, and I operate mostly on solaris/linux but > also of course on windows. Shouldn't this be made configurable??? CR LF is also a telnet construct - see RFC854 Regards, Michael Erskine. -- If you're going to do something tonight that you'll be sorry for tomorrow morning, sleep late. -- Henny Youngman --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
