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

List:       libssh2-devel
Subject:    Re: [libssh2] How to set env vars
From:       "Paul Thomas" <thomaspu () gmail ! com>
Date:       2008-09-12 1:19:23
Message-ID: c52222ba0809111819u682d10b3ma010e58931755a30 () mail ! gmail ! com
[Download RAW message or body]

The value returned from the function is -1 and the error message is:
  Unable to complete request for channel-setenv

Paul

On Thu, Sep 11, 2008 at 9:15 PM, Peter Stuge <peter@stuge.se> wrote:
> Paul Thomas wrote:
>> Anyone know how to get an enviornmental variable set through the
>> library? The doc says to just do:
>>   libssh2_channel_setenv_ex( channelPtr, "variableName_Foo",
>> "variableValue_Bar");
>> But the function always returns -1, failure. I'm getting a valid
>> channel pointer....
>
> Can you get an error code or message?
>
>
> //Peter
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libssh2-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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