Paramiko Question

2011-11-03 Thread Jacob Abraham
self.transport.close() self.live = False def __del__(self): self.close() if __name__ == '__main__': a= Connection('ip_or_hostname', 'root', '') print a.execute('version') print a.execute('version'

Paramiko and Threading

2010-09-29 Thread Jacob Abraham
Hi, Could someone help me understand how to using threading along with paramiko. For some reason only one of two of the threads returns the output correctly. Some of the threads returns an empty string as command output, but no errors are thrown. My attempt is pasted below. regards, Jacob