2

I am invoking a remote process using libcURLs 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.

liaK
  • 11,422
  • 11
  • 48
  • 73

1 Answers1

0

Could you create an invoker exective file? It calls the real remote process and output the remote process status. And now, you can call with libssh2_channel_open_ex to read exchanged data(remote process status) from remote server.

erinus
  • 734
  • 4
  • 5