When I try to do
stdin, stdout, stderr = client1.exec_command(\'glass-version\')
print stdout.readlines()
I am getting an empty output.
If you get no output on stdout
, it is usually because the command fails to start.
Read stderr
(stderr.readlines()
) to check for any errors.
Quite often the error is "<command> not found". For that see
Some Unix commands fail with "<command> not found", when executed using Python Paramiko exec_command