[paramiko] adding a handler to the paramiko loggers

2009-12-13 Thread Moritz Beber
Dear all, this is a bit of a specific problem so please bear with me. I'll try to go through it in easy steps. Basically, depending on command line arguments I want my application to log to different streams (file or stdout mainly). I can add a logger of my choosing to a 'Transport' instance

Re: [paramiko] adding a handler to the paramiko loggers

2009-12-14 Thread Moritz Beber
On 14/12/09 18:21, james bardin wrote: On Sun, Dec 13, 2009 at 10:01 PM, Moritz Beber moritz.be...@googlemail.com wrote: I can add a handler of my choosing to the Transport.logger but then something strange happens: I get duplicate entries on stdout. I checked the list of handlers

[paramiko] executing remote command

2009-12-22 Thread Moritz Beber
Dear list users, currently I execute code on a remote host like this: try: channel.send(cmd) except socket.timeout: channel.close() raise IOError # wait for command to be properly sent and executed time.sleep(2) try:

Re: [paramiko] Error msg

2010-07-27 Thread Moritz Beber
On 27/07/10 14:13, John Fano wrote: Hi Everyone, I recently found Paramiko and it's a great fit for my project. However I am having an issue running a command remotely. I have a windows machine running Cygwin with OpenSSH. Basically I am touching a batch file and adding net share commands to