[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

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

2019-04-05 Thread Sereysethy TOUCH
> <https://twistedmatrix.com/documents/8.1.0/api/twisted.conch.ssh.session.SSHSession.html#extReceived>. > You can access it through the protocol's transport. > > self.transport.conn.channels[0].extReceived() > > ~Sean > > On Fri, Apr 5, 2019 at 6:27 AM Sereysethy TOUCH < &

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

2019-04-06 Thread Sereysethy TOUCH
mmand like more or less which is an interactive command? 2) how to request a pty to ssh server? Thanks, Sethy On Fri, Apr 5, 2019 at 8:13 PM Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Fri, Apr 5, 2019 at 2:08 PM Sereysethy TOUCH < > touch.sereyse...@gmail.com> wrote:

[Twisted-Python] Conch question regarding command execution status

2019-06-11 Thread Sereysethy TOUCH
Hi, I have a question regarding conch ssh connection. I opened a channel to an ssh server, my requirement is to know when can I submit my next command after the first command execution finished. Is there a way to check that the command execution finished in case that there is no data received? Is

[Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Sereysethy TOUCH
Hello, I am developing a twisted app, and it runs as a service using twistd -y to start the app. I am having a problem of running a thread. I know it is not recommended to use thread, but the library that I use, the object created is running in a thread. Here is the problem: 1) if I start reacto

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Sereysethy TOUCH
, 2020 at 10:58 AM Sereysethy TOUCH < > touch.sereyse...@gmail.com> wrote: > >> Hello, >> >> I am developing a twisted app, and it runs as a service using twistd -y >> to start the app. >> I am having a problem of running a thread. I know it is not recom

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Sereysethy TOUCH
0 at 10:20 PM Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Thu, May 21, 2020 at 3:56 PM Sereysethy TOUCH < > touch.sereyse...@gmail.com> wrote: > >> Hi Jean-Paul, >> >> I found the error after working on a short, self contained, correcte >

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-22 Thread Sereysethy TOUCH
: transport -> connection -> transport -> my object to control connection. Thanks, TS On Fri, May 22, 2020 at 6:16 PM Barry Scott wrote: > On Thursday, 21 May 2020 21:45:44 BST Sereysethy TOUCH wrote: > > I am on MacOS, it is a development phase, but deployment will be on >