Hi,
Can someone pls check this script and advice why it is not working ??
-------------------- #!/usr/bin/expect -f
spawn rsync -e "ssh -p 2222" -arvz --delete /var/www/html/ root@192.168.1.44:/var/www/html/ match_max 100000 expect "*?assword:*" send "12345678\r" send "\r" expect eof
spawn rsync -e "ssh -p 2222" -arvz --delete /Backups/ root@192.168.1.44:/Backups/ match_max 100000 expect "*?assword:*" send "12345678\r" send "\r" expect eof
spawn rsync -e "ssh -p 2222" -arvz --delete /etc/mail/ root@192.168.1.44:/etc/mail/ match_max 100000 expect "*?assword:*" send "12345678\r" send "\r" expect eof
--------------------------
I do see rsync prompts etc, but actual rsyn does not happen. No error messages too.
Thx for your time.
Best regards, Sandeep