I have a small problem with paramiko. It seems that all commands are not executed like with a manual ssh session.
Let's focus on "history" shell command, even if my main concern is this command:
$ python /home/metrosim/src/urbansim/tools/make_indicators.py \
-x /home/metrosim/project_configs/paris_zone_ovh_km130110.xml \
-c /home/metrosim/data/paris_zone/base_year_data_a \
-i trip_generation -y [1999]
Both are working with manual ssh session, but not with paramiko, but simple commands like ls -lA
work.
Here is my code :
stdin, stdout, stderr = ssh_client.exec_command('history')
print 'LINES : '
data = stdout.read().splitlines()
for line in data:
print line