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.<br>I&#39;m not really sure how to handle this though, as I don&#39;t think that readlines() will stop blocking either.
<br>For example the following won&#39;t finish until you press Ctrl+D<br>#!/usr/bin/python<br>import sys<br>p = sys.stdin.readlines()<br>print p<br><br>
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.<br><br>-jim<br>