Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_channel_setenv_ex(3) [debian man page]

libssh2_channel_setenv_ex(3)					  libssh2 manual				      libssh2_channel_setenv_ex(3)

NAME
libssh2_channel_setenv_ex - set an environment variable on the channel SYNOPSIS
#include <libssh2.h> int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel, char *varname, unsigned int varname_len, const char *value, unsigned int value_len); int libssh2_channel_setenv(LIBSSH2_CHANNEL *channel, char *varname, const char *value); DESCRIPTION
channel - Previously opened channel instance such as returned by libssh2_channel_open_ex(3) varname - Name of environment variable to set on the remote channel instance. varname_len - Length of passed varname parameter. value - Value to set varname to. value_len - Length of value parameter. Set an environment variable in the remote channel's process space. Note that this does not make sense for all channel types and may be ignored by the server despite returning success. RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED - SEE ALSO
libssh2_channel_open_ex(3) libssh2 0.15 1 Jun 2007 libssh2_channel_setenv_ex(3)

Check Out this Related Man Page

libssh2_channel_process_startup(3)				  libssh2 manual				libssh2_channel_process_startup(3)

NAME
libssh2_channel_process_startup - request a shell on a channel SYNOPSIS
#include <libssh2.h> int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel, const char *request, unsigned int request_len, const char *message, unsigned int message_len); DESCRIPTION
channel - Active session channel instance. request - Type of process to startup. The SSH2 protocol currently defines shell, exec, and subsystem as standard process services. request_len - Length of request parameter. message - Request specific message data to include. message_len - Length of message parameter. Initiate a request on a session type channel such as returned by libssh2_channel_open_ex(3) RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED - SEE ALSO
libssh2_channel_open_ex(3) libssh2 0.15 1 Jun 2007 libssh2_channel_process_startup(3)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Length of an indirect variable

The construct ${#parameter} returns the number of characters in the parameter and ${!parameter} specifies an indirect variable. My question is: How do I combine these two. What I want is ${#!parameter} but this gives an error. Of course I can use: dummy=${!parameter} ${#dummy} but that's a... (0 Replies)
Discussion started by: gone_bush
0 Replies

2. UNIX for Dummies Questions & Answers

Save contents of a Variable

I want to save the contents of a variable to a file. How can that be achieved? I have tried with: echo $varname > textfile.txt but for some reason it does not print anything. (1 Reply)
Discussion started by: carl_vieyra
1 Replies

3. Shell Programming and Scripting

$$ means?

hey, what's $$varname in a script? I used to see $varname only. search on google didn't help. thanks. (4 Replies)
Discussion started by: patiobarbecue
4 Replies

4. Programming

Help understanding pointer assignment in c

after some years of pause, im returning to c. char *varname = "asd"; int *number = 4; the above code is wrong, because its assigning a value to an unreserved space, or because its changing the address the pointer is pointing ? thanks for the replys!! (3 Replies)
Discussion started by: broli
3 Replies

5. Shell Programming and Scripting

Handling string

I have to source a file "varname" the content of varname file is like this: #ani ani1 = abc_ani ani2 = def_ani #sham sham1 = abc_sham sham2 = abc_sham Now i need to extract any line containing "ani: in it. And then store the extracted info in a file. (3 Replies)
Discussion started by: animesharma
3 Replies

6. UNIX for Dummies Questions & Answers

What does "in" do?

select varname in opt1 opt2...optN do case $varname in opt1) command1;; opt2) command2;; optN) commandN;; esac done Looking at this skeleton for a select statement, I am baffled as to what exactly "in" does. Does it pass a reference off from the first... (2 Replies)
Discussion started by: Afrosephurai
2 Replies