_stdin, _stdout,_stderr = client.exec_command("top -c")
print(_stdout.read().decode())
print(_stderr.read().decode())
client.close()
output: TERM environment variable not set.
i am not getting top command output, please help in advance.
_stdin, _stdout,_stderr = client.exec_command("top -c")
print(_stdout.read().decode())
print(_stderr.read().decode())
client.close()
output: TERM environment variable not set.
i am not getting top command output, please help in advance.
Try to use
get_pty=True