简体   繁体   中英

Obtaining status from a remote executed process

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 eg 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM