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

List:       libssh2-devel
Subject:    Re: [libssh2] Interacting with a shell how?
From:       "Chris Nystrom" <cnystrom.tech () gmail ! com>
Date:       2007-10-18 18:47:31
Message-ID: 701c7740710181147p4eadd8aala42b48f2e16d4824 () mail ! gmail ! com
[Download RAW message or body]

On 9/8/07, Paul Thomas <thomaspu@gmail.com> wrote:
> 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 ~ $

Apparently not.

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

Try writing a command like "ls -l" and then reading the result.

Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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