Op 3/3/2011 2:06 PM, Naveen Sharma schreef:
>In a typical ssh session, a user will give "1" and will press enter
>and will enter the shell.
>rc = libssh2_channel_write(channel, "1", strlen("1"));
Where is the 'enter'? Wouldn't you want to write "1\n" or "1\r\n"?
rc = libssh2_channel_send_eof(channel);
Why close the channel? Do just want to press 1 and then stop doing anything useful?
I must admit I didn't try this out myself, but this just doesn't look
right from your description.
José
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel