I'm looking for a way to execute a script on a remote server through paramiko and receive the output back as it is written to stdout. These scripts can run for an hour or so, but as the task is being executed, I want to retrieve the log messages printed out to stdout. How do I do this?
If it is not possible in paramiko, is there any other module which can help me do this.