Esben Stien wrote:
> export _csv=`python <<'END'
As you have already discovered this is the source of your problem.
> /usr/bin/expect<<'EOF'
Times two, nested.
The bash documentation says:
Here Documents
This type of redirection instructs the shell to read input from
the current source until a line containing only delimiter (with
no trailing blanks) is seen. All of the lines read up to that
point are then used as the standard input for a command.
Since you are using stdin for the here-document then the file
descriptor associated with it will return EOF since it will already
have read to the end of the file.
> spawn /usr/bin/ssh $usr@$host
The above will then always get EOF from the here-document file which
has already been read to the end of file.
This type of question is really better placed in the help-bash mailing
list rather than the bug-bash mailing list. The help-bash list is
relatively new and so we are always reminding people to use it when
appropriate.
Bob