Sending Through ^] Through telnetlib

John Abel john.abel at pa.press.net
Fri Jan 23 09:02:53 EST 2004


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.  I've tried 
sending chr(29), which is the ascii equivalent, but that doesn't seem to 
work.  Is there something I'm missing?

Any pointers would be much appreciated.

Thanks

J




More information about the Python-list mailing list