I\'m using Paramiko to tail -f a file on a remote server.
tail -f
Previously, we were running this via ssh -t, but that proved flaky, and the
ssh -t
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