Subject: Re: multiple exec

Re: multiple exec

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 21 Jan 2010 22:00:59 +0100

A. Mark wrote:
> I was wondering what would be the simplest way to execute two
> commands simultaneously using libssh2.
..
> I'm afraid however that I can't do another channel exec until the
> previous process has finished and the channel has closed.

The channel may even be destroyed after the exec:ed command returns.

One solution is to simply create many channels. That works just fine.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-21