Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_channel_get_exit_signal(3) [centos 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_scp_send_ex(3)						  libssh2 manual					    libssh2_scp_send_ex(3)

NAME
libssh2_scp_send_ex - Send a file via SCP SYNOPSIS
#include <libssh2.h> LIBSSH2_CHANNEL * libssh2_scp_send_ex(LIBSSH2_SESSION *session, const char *path, int mode, size_t size, long mtime, long atime); DESCRIPTION
This function has been deemed deprecated since libssh2 1.2.6. See libssh2_scp_send64(3). session - Session instance as returned by libssh2_session_init_ex(3) path - Full path and filename of file to transfer to. That is the remote file name. mode - File access mode to create file with size - Size of file being transmitted (Must be known ahead of time precisely) mtime - mtime to assign to file being created atime - atime to assign to file being created (Set this and mtime to zero to instruct remote host to use current time). Send a file to the remote host via SCP. RETURN VALUE
Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SCP_PROTOCOL - LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block. AVAILABILITY
This function was marked deprecated in libssh2 1.2.6 as libssh2_scp_send64(3) has been introduced to replace this function. SEE ALSO
libssh2_channel_open_ex(3) libssh2 0.15 1 Jun 2007 libssh2_scp_send_ex(3)
Man Page

4 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. 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

4. 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