On Fri, Apr 23, 2010 at 5:23 PM, RSCL Mumbai rscl.mumbai@gmail.com wrote:
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.
Cud you paste output of your Expect script??
Thx for your time.
Best regards, Sandeep -- http://mm.glug-bom.org/mailman/listinfo/linuxers