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

expect does not expect anything



#!/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



Thanks,

Dirk


Reply to: