This bug has been fixed in the latest source (the release is pending though).


> Should not the sequence be:
> connect(sock....)
> libssh2_session_init()
> ...authentication
> libssh2_channel_open_session()
> libssh2_channel_request_pty()
> libssh2_channel_exec(channel,"/bin/date")
> 
> Now the command should complete when you get an EOF from the channel:
> while {
>       libssh2_channel_read();
>       if (libssh2_channel_eof(channel)) {
>           printf("EOF from remote side\n");
>           break;
>       }
> }
> 
> libssh2_channel_close();
> libssh2_channel_wait_closed(channel);
> 
> However I did not the output from the date command
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to