Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_channel_get_exit_signal(3) [debian man page]

libssh2_channel_get_exit_signal(3)				  libssh2 manual				libssh2_channel_get_exit_signal(3)

NAME
libssh2_channel_get_exit_signal - get the remote exit signal SYNOPSIS
#include <libssh2.h> int libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL *channel, char **exitsignal, size_t *exitsignal_len, char **errmsg, size_t *errmsg_len, char **langtag, size_t *langtag_len); DESCRIPTION
channel - Closed channel stream to retrieve exit signal from. exitsignal - If not NULL, is populated by reference with the exit signal (without leading "SIG"). Note that the string is stored in a newly allocated buffer. If the remote program exited cleanly, the referenced string pointer will be set to NULL. exitsignal_len - If not NULL, is populated by reference with the length of exitsignal. errmsg - If not NULL, is populated by reference with the error message (if provided by remote server, if not it will be set to NULL). Note that the string is stored in a newly allocated buffer. errmsg_len - If not NULL, is populated by reference with the length of errmsg. langtag - If not NULL, is populated by reference with the language tag (if provided by remote server, if not it will be set to NULL). Note that the string is stored in a newly allocated buffer. langtag_len - If not NULL, is populated by reference with the length of langtag. RETURN VALUE
Numeric error code corresponding to the the Error Code constants. libssh2 1.2.8 4 Oct 2010 libssh2_channel_get_exit_signal(3)

Check Out this Related 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)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help

I have a csv file, which is comma delimited. It has 300 fields, but not all are populated with data. What I need to do is run a script that would look at each field and if it is populated then print the contents along with the field number, i.e. Joe Bloggs - 2 (Joe Bloggs is the data and 2 is... (4 Replies)
Discussion started by: dbrundrett
4 Replies

2. Shell Programming and Scripting

using case to do this might be a bad idea?

Reading this file. I want to read all 4 fields. If 2 is populated with a p, I want to set $TYPEP to "Printers", if not should be empty. If 3 is populated with an r, I want to set $TYPER to "REQ Printers" if not should be empty. If 4 is populated with letter o, I want to set $TYPEO to... (12 Replies)
Discussion started by: Skyybugg
12 Replies

3. AIX

When/how is $HOSTNAME populated ?

When and how is the variable $HOSTNAME populated ? I am asking because I had a weird situation that just happened. I have created backup scripts that do backups on different servers. Each servers has different folders to be backed up. So I had included a check on $HOSTNAME to find out which... (5 Replies)
Discussion started by: Browser_ice
5 Replies

4. Shell Programming and Scripting

Identifying the file completion

Hi, A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file. I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming? Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies

5. UNIX for Dummies Questions & Answers

insert comma

my file looks like this: 297 PC Closed 07/10/12 999000098 AMERICAN SOCIETY FOR HEALTHCAR 0.00 USD 1 NAI i want to look line this: 297,PC,Closed,07/10/12,999000098,AMERICAN SOCIETY FOR HEALTHCAR,0.00,USD,1,NAI (4 Replies)
Discussion started by: lawsongeek
4 Replies