[Twisted-Python] Serializing cftp and ssh sessions

Axel Rau Axel.Rau at Chaos1.DE
Tue Oct 14 09:07:28 MDT 2014


Am 14.10.2014 um 14:22 schrieb exarkun at twistedmatrix.com:

> 
> We might need more to go on.  Do you have a complete, minimal example? (See http://sscce.org/)
The attached zip archive  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ml.zip
Type: application/zip
Size: 3099 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20141014/5e35dacd/attachment-0002.zip>
-------------- next part --------------
 contains:
	sftp.py, ssh.py and test.py
To run it, you need to prepare some files in /tmp and select a host to which you have ssh access via public key.
If you comment out the call to ssh.executeRemoteCommands in test, sftp.distributeFiles should complete successfully if you run test.
Commenting out the call to sftp.distributeFiles, allows the call to ssh.executeRemoteCommands to do its work, but it does not exit.

Axel

---
PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius



More information about the Twisted-Python mailing list