Jeremy Knope wrote:
> very so often a command I execute returns 0 bytes of data and a
> status of 0, but then I can execute the command again and I might
> get results on the 2nd try.
Tricky.
I would suggest to attach strace to the sshd process, and increase
debugging as far as possible without making the error run and hide.
> In my sample app, every time I execute a command, a channel via
> libssh2_channel_open_session() is opened and command is executed
> via libssh2_channel_exec(). I'm also running everything in
> blocking mode.
I think this should work just fine. But it would be nice to look at
that strace output.
> The only time it seems to work 100% reliably is if I turn logging
> on my local sshd to DEBUG3.
Hah! Lots of fun.
//Peter
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-04-14