Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-07 Thread Glyph
> On Apr 6, 2019, at 10:12 AM, Sereysethy TOUCH > wrote: > > Hi Jean-Paul, > > No I dont want it to be mixed with stdout stream, it should be separated from > normal stdout, so that I know it is an error. > > To be honest, I am pretty to new to Twisted concept, there are things that I > ha

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-06 Thread Sereysethy TOUCH
Hi Jean-Paul, No I dont want it to be mixed with stdout stream, it should be separated from normal stdout, so that I know it is an error. To be honest, I am pretty to new to Twisted concept, there are things that I have not familiar with yet. Actually I can also implement a low level ssh client (

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Jean-Paul Calderone
On Fri, Apr 5, 2019 at 2:08 PM Sereysethy TOUCH wrote: > Hi Sean, > > Yes it is a method of SSHChannel, but when I read the source code, the > _CommandChannel only implements dataReceived which calls protocol's method > but it does not implement extReceived. > > When you suggest to call it like t

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sereysethy TOUCH
Hi Sean, Yes it is a method of SSHChannel, but when I read the source code, the _CommandChannel only implements dataReceived which calls protocol's method but it does not implement extReceived. When you suggest to call it like that (self.transport.conn.channels[0].extReceived()), how do I know wh

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sean DiZazzo
It looks like extReceived() is a method of SSHSession.Channel.SSHChannel . You can access it through the protocol's transport. self.transport.conn.channels[0].extReceived() ~Sean On Fri, Apr 5, 2

[Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sereysethy TOUCH
Hello, I am implementing a program using SSHCommandClientEndpoint, the program works fine (dataReceived got calls) but when the server send an error message (stderr..), the function extReceived in my protocol never gets called, instead it only calls the one in the SSHChannel as I can see in the lo