1) maybe I should look into using shared keys instead since I don't need anything more complicated than that (EDIT: in fact I don't; I have it working now using the following instructions:
http://www.debian-administration.org/articles/152 )
but it could still be useful to know how to make expect do this
6.2b) The expect script is definitely not returning any output from the spawned rsync command to my terminal (my ssh terminal if that matters). I see the following almost immediately after executing the script:
spawn rsync -r -H -p -o -g -t -v -e ssh --delete /etc
user@myserver.com:/spare
user@myserver.com's password:
And that's it. If I put an expect statement:
expect "bytes received"
...after the rsync command then it waits (apparently) until rsync the final line of rsync output before returning.
Are you saying the default behavior should be to show me the output? I'm not seeing it.