expect does not expect anything
On 07/24/2010 07:35 PM, Dirk wrote:
> #!/usr/bin/expect -f
> spawn rsync -r --progress a email@example.com:/b
> expect "assword:"
> send "password
> expect "hostname"
> why does this script stop while rsync is still transferring?
> (hostname is the name of the host in the prompt)
> and, yes, it HAS TO BE done using expect... any answer including the word "keys" will not be helpful
. O . O . O . . O O . . . O .
. . O . O O O . O . O O . . O
O O O . O . . O O O O . O O O