Re: [paramiko] unknown cipher

2010-02-04 Thread Marcin Krol
james bardin wrote: On Wed, Feb 3, 2010 at 5:30 AM, Marcin Krol mrk...@gmail.com wrote: Hello everyone, I'm getting 'unknown cipher': Are you using the latest version of paramiko (1.7.6)? No. Silly me. I have upgraded to 1.7.6 and it works. Thanks, James! Performance-wise: time cssh.py

[paramiko] Using invoke_shell to su root

2010-02-04 Thread Wan Li
Hi, Sometimes I need to su root and execute some command, I tried to use the chan = invoke_shell(), chan.send(su root) , wait the output and finally send the passwd. After that, I use the chan.send(whoami) to check if it's successful executed. Bu I found the behavior is a bit different from the

Re: [paramiko] Using invoke_shell to su root

2010-02-04 Thread Wan Li
I'm also looking into the demo.py to get some inspirations. The input and output are in different thread, it's OK a command line usage. But how can I know whether the command's output recv() is totally complete? Is there a eof_received or command_output_eof like state or even a event to check? On