Paramiko and exec_command - killing remote process?

前端 未结 8 1640
情书的邮戳
情书的邮戳 2020-12-09 05:09

I\'m using Paramiko to tail -f a file on a remote server.

Previously, we were running this via ssh -t, but that proved flaky, and the

8条回答
  •  庸人自扰
    2020-12-09 05:34

    Specifically for 'tail' you could use the --pid=PID argument and let tail take care of it:

      --pid=PID  with -f, terminate after process ID, PID dies
    

提交回复
热议问题