[paramiko] Problem using channels
james bardin
jbardin at bu.edu
Fri Dec 7 20:04:31 PST 2007
I think that when you send the password to the next host, the program needs
to get an EOF so the read() can finish and continue.
I'm not really sure how to handle this though, as I don't think that
readlines() will stop blocking either.
For example the following won't finish until you press Ctrl+D
#!/usr/bin/python
import sys
p = sys.stdin.readlines()
print p
An easy way out would be to allow the program to take the password as an
optional argument, and pass everything to the next host in one string.
-jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lag.net/pipermail/paramiko/attachments/20071207/e5904bb8/attachment.htm
More information about the paramiko
mailing list