[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libssh2-devel
Subject:    [libssh2] Interacting with a shell how?
From:       "Paul Thomas" <thomaspu () gmail ! com>
Date:       2007-09-08 17:51:33
Message-ID: c52222ba0709081051h2f84f2a3me8eee7c32da7b625 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

So I&#39;ve been reading through the docs and I&#39;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?<br><br>The guides all say<br>&nbsp;&nbsp;&nbsp; /* At this point the \
shell can be interacted with using <br>&nbsp;&nbsp;&nbsp;&nbsp; * \
libssh2_channel_read()<br>&nbsp;&nbsp;&nbsp;&nbsp; * \
libssh2_channel_read_stderr()<br>&nbsp;&nbsp;&nbsp;&nbsp; * \
libssh2_channel_write()<br>&nbsp;&nbsp;&nbsp;&nbsp; * \
libssh2_channel_write_stderr()<br><br>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: <br>&nbsp;&nbsp; paul@computerName ~ $<br><br>What am I \
missing here? I&#39;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. <br><br>Help? Advice?<br>Paul<br>



-------------------------------------------------------------------------
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/

_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic