Re: using ssh_channel_write for command execution problem

2019-11-08 Thread Karah Sekir
ACK from it? I tried with ssh read before or after and it works, probably it has the same effect as this_thread::sleep (delaying something somewhere). št 7. 11. 2019 o 16:28 Andreas Schneider napísal(a): > On Thursday, 7 November 2019 16:24:01 CET Karah Sekir wrote: > > yes I have seen e

Re: using ssh_channel_write for command execution problem

2019-11-08 Thread Karah Sekir
hannel_write successfully finishes and writes all bytes). št 7. 11. 2019 o 16:09 napísal(a): > On 07.11.19 15:27, Karah Sekir wrote: > > Hi Andreas, > > > > I tried with ssh_channel_exec() (removing the PTY) and I am getting > > the same behaviour. > > > > I shou

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Karah Sekir
the cause. št 7. 11. 2019 o 15:32 Andreas Schneider napísal(a): > On Thursday, 7 November 2019 15:27:38 CET Karah Sekir wrote: > > Hi Andreas, > > > > I tried with ssh_channel_exec() (removing the PTY) and I am getting the > > same behaviour. > > > > I should

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Karah Sekir
? Thanks! št 7. 11. 2019 o 12:05 Andreas Schneider napísal(a): > On Wednesday, 6 November 2019 17:36:11 CET Karah Sekir wrote: > > Hi all, > > > > I am trying to establish a persistent connection to a SSH server where I > > want to periodically send commands via ss

using ssh_channel_write for command execution problem

2019-11-06 Thread Karah Sekir
Hi all, I am trying to establish a persistent connection to a SSH server where I want to periodically send commands via ssh_channel_write. I am using Linux (5.0.0-32-generic #34~18.04.2-Ubuntu SMP). My problem is when I call ssh_channel_write with a command I sometimes see it executed on the serv