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

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


i want execute a python program, some works within it, such as clone repos using git.

发自我的华为手机


-------- 原始邮件 --------
主题:Re: how to execute a long-time blocking command on remote server?
发件人:Nikolay
收件人:libssh@xxxxxxxxxx
抄送:


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.


 



Archive administrator: postmaster@lists.cynapses.org