I use Paramiko to run some ssh commands to the remote Linux server. The commands will have continuous output in the console and I want to print these all information in the local console window.
stdin, stdout, stderr = ssh.client.exec_command("ls")
for line in stdout.read()
print line,
ssh.client.close()
So if I write the code like this, all the output information will be sent back to me until the command finishes executing while I want to print the output in live.
Thanks a lot.