The answer is no I wasn't running it with twistd as I didn't need to with the ssh one... having now run it with twistd I can see the exceptions it throws but I have absolutely no clue how to go about rectifying them :( 
<br>From what I can make out the main issue is with no terminal size being set which from the demo_insults.tac looks like it&#39;s set in my class that deals with connections associating it with insults.TerminalProtocol (eg. class DemoProtocol(
insults.TerminalProtocol): ) however, I am dealing with my connections in recvline as I don&#39;t want it to react on a per character basis but rather a per line basis...<br><br>*confused of england*<br><br>Andrew<br><br>
<br><div><span class="gmail_quote">On 8/8/07, <b class="gmail_sendername">Jean-Paul Calderone</b> &lt;<a href="mailto:exarkun@divmod.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
exarkun@divmod.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wed, 8 Aug 2007 13:25:59 +0100, Andrew Roden &lt;
<a href="mailto:andrew.roden@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andrew.roden@gmail.com</a>&gt; wrote:<br>&gt;Hi<br>&gt;<br>&gt;I&#39;m pretty new to python which probably isn&#39;t helping, but I&#39;m kind of stuck
<br>&gt;with twisted telnet. I&#39;m trying to build a couple of &#39;emulators&#39; for some
<br>&gt;simple router/switches just so that you can log on and run some &#39;standard&#39;<br>&gt;commands and get a &#39;standard&#39; output for use elsewhere. I&#39;ve managed to get<br>&gt;an SSH version working with the massively helpful section in the O&#39;Reilly
<br>&gt;book but I cannot get the telnet version working. the script &#39;runs&#39; with no<br>&gt;errors, but it doesn&#39;t stay running and bind to port 23 giving me my telnet<br>&gt;server. I enclose a zip with the ssh and the telnet versions, if anyone can
<br>&gt;give me any pointers it would be massively appreciated (I haven&#39;t even<br>&gt;attempted to add in the &#39;login&#39; which is in the SSH version... so any help<br>&gt;on that would be great too :) )<br><br>Are you using twistd to run it?
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$ twistd -noy telnet_server.py<br>&nbsp;&nbsp;&nbsp;&nbsp;Removing stale pidfile twistd.pid<br>&nbsp;&nbsp;&nbsp;&nbsp;2007-08-08 08:31:05-0400 [-] Log opened.<br>&nbsp;&nbsp;&nbsp;&nbsp;2007-08-08 08:31:05-0400 [-] twistd 2.5.0+r20987 (/usr/bin/python 2.4.3) starting up
<br>&nbsp;&nbsp;&nbsp;&nbsp;2007-08-08 08:31:05-0400 [-] reactor class: &lt;class &#39;twisted.internet.selectreactor.SelectReactor&#39;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;2007-08-08 08:31:05-0400 [-] twisted.internet.protocol.ServerFactory starting on 23<br>&nbsp;&nbsp;&nbsp;&nbsp;2007-08-08 08:31:05-0400 [-] Starting factory &lt;
twisted.internet.protocol.ServerFactory instance at 0xb77f5fac&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br><br>After I connect to the port, it reports several tracebacks and drops the<br>connection.<br><br>Jean-Paul<br><br><br>_______________________________________________
<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
</a><br></blockquote></div><br>