1libssh2_channel_process_startup(3l)ibssh2 manuallibssh2_channel_process_startup(3)
2
3
4

NAME

6       libssh2_channel_process_startup - request a shell on a channel
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int   libssh2_channel_process_startup(LIBSSH2_CHANNEL  *channel,  const
12       char *request, unsigned int request_len, const char *message,  unsigned
13       int message_len);
14
15       int libssh2_channel_shell(LIBSSH2_CHANNEL *channel);
16
17       int  libssh2_channel_exec(LIBSSH2_CHANNEL  *channel,  const  char *mes‐
18       sage);
19
20       int  libssh2_channel_subsystem(LIBSSH2_CHANNEL  *channel,  const   char
21       *message);
22
23

DESCRIPTION

25       channel - Active session channel instance.
26
27       request  -  Type  of  process  to  startup. The SSH2 protocol currently
28       defines shell, exec, and subsystem as standard process services.
29
30       request_len - Length of request parameter.
31
32       message - Request specific message data to include.
33
34       message_len - Length of message parameter.
35
36       Initiate a request on a session type channel such as returned  by  lib‐
37       ssh2_channel_open_ex(3)
38

RETURN VALUE

40       Return   0  on  success  or  negative  on  failure.   It  returns  LIB‐
41       SSH2_ERROR_EAGAIN  when  it   would   otherwise   block.   While   LIB‐
42       SSH2_ERROR_EAGAIN  is  a negative number, it isn't really a failure per
43       se.
44

ERRORS

46       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
47
48       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
49
50       LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED -
51

SEE ALSO

53       libssh2_channel_open_ex(3)
54
55
56
57libssh2 0.15                      1 Jun 2007libssh2_channel_process_startup(3)
Impressum