libssh2_channel_process_startup(3)
β¨ libssh2_channel_process_startup β¨
okay bestie, welcome to the libssh2 manual, page libssh2_channel_process_startup(3) π
this one is all about asking a channel to start up a lil process for you, and honestly? it's giving main character energy π
πΈ 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);
like. look at those params. five of them. we love a full lineup π
π DESCRIPTION π
so here's the tea, fr fr β:
channelβ the active session channel instance. this is your girl, your channel, the one doing the actual work.requestβ the type of process to startup. the SSH2 protocol currently definesshell,exec, andsubsystemas the standard process services. that's the whole menu, no secret items πrequest_lenβ the length of therequestparameter.messageβ request-specific message data to include. like, the details that go with whatever request you picked.message_lenβ the length of themessageparameter.
and what does it do? it initiates a request on a session type channel β like the kind you get handed back from libssh2_channel_open_ex(3) π«Ά so like, you get the channel first, and then you ask it to start something up. order matters, iykyk.
π₯ RETURN VALUE π₯
returns 0 on success, or a negative number on failure. it also returns LIBSSH2_ERROR_EAGAIN when it would otherwise block β and yes, LIBSSH2_ERROR_EAGAIN is technically a negative number, but bestie, it is not really a failure per se π it's just the vibe saying "try again later, girl."
no cap: negative does not always mean bad here. read the actual error code before you spiral π
π ERRORS π
LIBSSH2_ERROR_ALLOCβ an internal memory allocation call failed. the malloc girlies are struggling πLIBSSH2_ERROR_SOCKET_SENDβ unable to send data on socket. the socket said no thank you π«LIBSSH2_ERROR_CHANNEL_REQUEST_DENIEDβ that's the whole entry, bestie, the original just names it and dips. denied is denied π
π SEE ALSO π
and that's the page!! π this one comes from the libssh2 manual, version 0.15, dated 1 Jun 2007 β yeah she's an elder icon but she still slays πβ¨ mwah, go start some processes, love u ππ¦
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms