[Twisted-Python] Passing parameters to Adapter

2013-02-12 Thread Fabian Sturm
Dear twisted developers, I have a sshdaemon based on sshsimpleserver.py which works great. But I now want to pass a command line argument to the EchoProtocol. How can I do this? In this case I would like to pass the 'options.test' option to my protocol. if __name__ == '__main__': parser

Re: [Twisted-Python] Using telnet or linereceiver protocol over ssh

2013-01-05 Thread Fabian Sturm
Hi Glyph Am Montag, den 31.12.2012, 00:54 -0800 schrieb Glyph: > Have you looked at HistoricRecvLine > ? No I didn't find that! This is exaclty what I was looking for :-) I knew there had to be somethi

[Twisted-Python] Using telnet or linereceiver protocol over ssh

2012-12-30 Thread Fabian Sturm
Hello, I implemented a twisted ssh server using SSHFactory and successfully registered the sftp factory. I now also wanted to add a simple telnet like protocol where I can send commands to the server and execute some actions based on that. For that I hooked the LineReceive to the openShell comman