libssh2_channel_get_exit_status.3 646 B

123456789101112131415161718
  1. .TH libssh2_channel_get_exit_status 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_channel_get_exit_status - get the remote exit code
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_channel_get_exit_status(LIBSSH2_CHANNEL* channel)
  8. .SH DESCRIPTION
  9. \fIchannel\fP - Closed channel stream to retrieve exit status from.
  10. Returns the exit code raised by the process running on the remote host at
  11. the other end of the named channel. Note that the exit status may not be
  12. available if the remote end has not yet set its status to closed.
  13. .SH RETURN VALUE
  14. Returns 0 on failure, otherwise the \fIExit Status\fP reported by remote host