Re: [libssh2] how to catch an emulated console closing

2008-03-15 Thread Sabyasachi Ruj
Hi, Did you solve it? On Mon, Feb 25, 2008 at 2:52 AM, Paul Thomas <[EMAIL PROTECTED]> wrote: > Hmm, I guess I'll just have to play around with it then! > > Thanks, > Paul > > On Sun, Feb 24, 2008 at 2:32 PM, Peter Stuge <[EMAIL PROTECTED]> wrote: > > On Sat, Feb 23, 2008 at 09:10:33PM -0500, Pau

Re: [libssh2] how to catch an emulated console closing

2008-02-24 Thread Paul Thomas
Hmm, I guess I'll just have to play around with it then! Thanks, Paul On Sun, Feb 24, 2008 at 2:32 PM, Peter Stuge <[EMAIL PROTECTED]> wrote: > On Sat, Feb 23, 2008 at 09:10:33PM -0500, Paul Thomas wrote: > > I guess the shell closes and the channel is still open... so if > > thats the case, ho

Re: [libssh2] how to catch an emulated console closing

2008-02-24 Thread Peter Stuge
On Sat, Feb 23, 2008 at 09:10:33PM -0500, Paul Thomas wrote: > I guess the shell closes and the channel is still open... so if > thats the case, how do I tell when the shell is closed on the > channel? When you can't read() or write() to it I guess. //Peter -

[libssh2] how to catch an emulated console closing

2008-02-23 Thread Paul Thomas
Developers, I've been trying to figure out how to use the library to find out when a channel closes... For instance, I have a channel that I've opened up a pty and a shell on which helps me emulate a console. When the user types in "exit" the console session ends, but I'm not sure how to find out