On Wed, Jan 27, 2010 at 11:14 AM, stefano landucci <marlonba...@gmail.com> wrote: > > Ok. > > I find the example below: > > i, o, e = client.exec_command('cd /etc') > > i.write('ls\n') > i.flush() > > I test it, but don't work. > Waht do you think about it? >
It won't work, because there's no shell running on the other end to interpret the second command. You would need to use something like client.exec_command('ls /etc') or, client.exec_command('cd /etc; ls') >> You can get an interactive shell with invoke_shell(), but then you >> have to script being "interactive" > > I use it, but i don't like. > exactly! _______________________________________________ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko