Eduardo Bustamante <dual...@gmail.com> writes: > The summary is that SSH is reading from the same file descriptor as > "read". Use '-n' (or redirect SSH's stdin from /dev/null) to prevent > this.
Oh, yeah, I've been bitten by that one many times. Another solution, though more awkward, is feeding the data for read into a higher-numbered fd and using "read -u [fd]" to read it. Dale