[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Calling ssh_channel_request_exec twice


Thanks for the update.

A work around was to use the one call to exec to do cat both files at once
which works since I realistically wanted them both into one output anyway.

-----Original Message-----
From: Aris Adamantiadis [mailto:aris@xxxxxxxxxxxx] 
Sent: Thursday, November 03, 2011 1:33 PM
To: libssh@xxxxxxxxxx
Subject: Re: Calling ssh_channel_request_exec twice

Hi,

It's mandatory to open a new channel. Channels currently cannot be used
twice.

Kr,

Aris

Le 03/11/11 17:29, Kevin Lambert a écrit :
> I had working code that was cat?ing a file and retrieving the contents 
> of the file and then I needed to modify it to do the same thing but 
> with two files but ssh_channel_request_exec is returning an error on 
> the 2^nd call. Should I not be using the same channel for 2 different 
> calls to ssh_channel_request_exec?
>
> Kevin
>



References:
Calling ssh_channel_request_exec twice"Kevin Lambert" <kl@xxxxxxxxx>
Re: Calling ssh_channel_request_exec twiceAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org