[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: expect does not expect anything



On 07/24/2010 07:35 PM, Dirk wrote:
> #!/usr/bin/expect -f
> 
> spawn rsync -r --progress a u@bla.com:/b
> expect "assword:"
> send "password\r"
> 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

Why?

-- 
. 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

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: