Sending Through ^] Through telnetlib

Richard Brodie R.Brodie at rl.ac.uk
Fri Jan 23 18:09:54 CET 2004


"John Abel" <john.abel at pa.press.net> wrote in message
news:mailman.687.1074866920.12720.python-list at python.org...

> I have written a script that makes a telnet connection, runs various
> commands, and returns the output.  That was the easy bit :)  However, to
> close the session, I need to send ^] followed by quit.

Are you sure that just calling close() isn't what you want?
It would be unusual to send ^]quit on the wire.





More information about the Python-list mailing list