1libssh2_channel_process_startup(3l)ibssh2 manuallibssh2_channel_process_startup(3)
2
3
4
6 libssh2_channel_process_startup - request a shell on a channel
7
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
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_session(3)
38
39
41 Return 0 on success or negative on failure. It returns LIB‐
42 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
43 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
44 se.
45
46
48 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
49
50 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
51
52 LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED -
53
54
56 libssh2_channel_open_session(3)
57
58
59
60libssh2 0.15 1 Jun 2007libssh2_channel_process_startup(3)