[Tutor] Sending Break in Telnet

Pankaj Mittal PMittal@Ceon.com
Wed Jan 15 21:25:02 2003


Hi

I am developing a python program that connects to a server using telnet.
When I use the unix telnet I have to send 
telnet <IPAddress> <PortNumber>. This has to be followed by sending a "^]"
chartacter and then with "send break" on receiving a "telnet>" prompt. 
But when I try to send \035(equivalent of '^]', it does not work. Also I
tried to send '\377\363'(255 and 243 - code as in RFC document). Following
is the snippet of the successful transaction when done manually from the
Solaris prompt.

>telnet 192.168.1.0 10012
Trying 192.168.1.0 ...
Connected to 192.168.1.0 .
Escape character is '^]'.

telnet> send break

?login
Enter User Name

Thanks

Pankaj