www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: How do i know that process has completed?

Re: How do i know that process has completed?

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 5 Oct 2011 23:27:12 +0200

Pavel Strashkin wrote:
> What is the best way to know that command has completed and
> exit_status is ready to be read?

libssh2_channel_eof()

> 2. Is there any way to read stdout/stderr separately?

libssh2_channel_read() reads stdout
libssh2_channel_read_stderr() guess what ;)

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-05

the libssh2 team