www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libssh2_channel_exec issue

Re: libssh2_channel_exec issue

From: Peter Stuge <peter_at_stuge.se>
Date: Sun, 14 Feb 2010 19:13:48 +0100

vicent roca daniel wrote:
> The problem I have is that the first libssh2_channel_exec() works
> fine, but the second, third, etc.. don't work.

Please show us code.

> It seems that for some reason the channel is closed.
> ¿I'm doing it wrong?

An exec channel is closed when the exec:ed process on the server
terminates. If you want to start another process (in sequence, or in
parallell) then you have to create another channel.

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-14

the libssh2 team