[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to execute a long-time blocking command on remote server?


Hi,

From the libssh's point of view, there is no difference if your remote command is long or short time running.

request_exec just starts the command and returns after it is started. After that you can read/write to the channel. As the command is finished, you will get an EOF on remote stdin stream.

Best regards, Nikolay Karikh.

01.11.2017 11:44, kipade wrote:
hi all,
as the topic,  how to execute a long-time blocking command on remote machine via
ssh_channel_request_exec? or i can use this interface for such purpose?
any hints will be very appreciated.



Attachment: smime.p7s
Description: Криптографическая подпись S/MIME


Follow-Ups:
回复:how to execute a long-time blocking command on remote server?"kipade@xxxxxxx" <kipade@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org