username=iltuousername
server=iltuoip
password=latuapassword
expect -c "
spawn rsync -a --delete ssh /nomecartellasorgente/ $username@$server:/nomecartelladestinatario/
expect {
"*password:*" { send $password\r\n; interact }
eof { exit }
}
exit
Nessun commento:
Posta un commento