I am invoking a remote process using libcURL
s libssh2
. The remote server is a Linux (CentOS) and the client is an Windows XP. Also am using Qt 4.6 and C++.The processes are some third party applications which will be invoked by libssh2
I am able to remotely execute a process using libssh2_channel_exec().
But how to obtain the status of the invoked process? Say for e.g like PROCESS_STARTED
or PROCESS_COMPLETED
or PROCESS_RUNNING
or something like that.
Now libssh2_channel_exec()
returns just 0
for success.
Is there any way I can obtain the status of such remote executed processes? Any pointers regarding this are welcome.