From libssh2-devel Sat Sep 08 17:51:33 2007 From: "Paul Thomas" Date: Sat, 08 Sep 2007 17:51:33 +0000 To: libssh2-devel Subject: [libssh2] Interacting with a shell how? Message-Id: X-MARC-Message: https://marc.info/?l=libssh2-devel&m=118927389732358 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0447671324==" --===============0447671324== Content-Type: multipart/alternative; boundary="----=_Part_1045_25278160.1189273893096" ------=_Part_1045_25278160.1189273893096 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So I've been reading through the docs and I've got a working example that can get to the point where it can open up a shell on a pty, but after that suceeds what do I do now? The guides all say /* At this point the shell can be interacted with using * libssh2_channel_read() * libssh2_channel_read_stderr() * libssh2_channel_write() * libssh2_channel_write_stderr() Thats nice, but I expected that after I requested a shell that there would be some data on the socket ready to be read that contained something like: paul@computerName ~ $ What am I missing here? I've been unable to find much help online in the form of docs talking about ssh with the exception of the RFCs and these talk about the protocol, not what do do when its already connected. Help? Advice? Paul ------=_Part_1045_25278160.1189273893096 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So I've been reading through the docs and I've got a working example that can get to the point where it can open up a shell on a pty, but after that suceeds what do I do now?

The guides all say
    /* At this point the shell can be interacted with using
     * libssh2_channel_read()
     * libssh2_channel_read_stderr()
     * libssh2_channel_write()
     * libssh2_channel_write_stderr()

Thats nice, but I expected that after I requested a shell that there would be some data on the socket ready to be read that contained something like:
   paul@computerName ~ $

What am I missing here? I've been unable to find much help online in the form of docs talking about ssh with the exception of the RFCs and these talk about the protocol, not what do do when its already connected.

Help? Advice?
Paul
------=_Part_1045_25278160.1189273893096-- --===============0447671324== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0447671324== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel --===============0447671324==--