[paramiko] remote command info

2010-01-26 Thread stefano landucci
Hi, I'm a paramiko's newbie. I started with a simple ssh connection and command execution like below: import sys import paramiko client = paramiko.SSHClient() client.load_system_host_keys() ip = 'ip_server' client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(ip,port=22,

Re: [paramiko] remote command info

2010-01-27 Thread stefano landucci
2010/1/27 james bardin jbar...@bu.edu The short answer is, you don't. Run your commands separately with exec_command(), and remove their dependencies on one another, and you will be much happier. Ok. I find the example below: i, o, e = client.exec_command('cd /etc') i.write('ls\n')