On Fri, Apr 23, 2010 at 5:23 PM, RSCL Mumbai <[email protected]> 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/ > [email protected]:/var/www/html/ > match_max 100000 > expect "*?assword:*" > send "12345678\r" > send "\r" > expect eof > > spawn rsync -e "ssh -p 2222" -arvz --delete /Backups/ > [email protected]:/Backups/ > match_max 100000 > expect "*?assword:*" > send "12345678\r" > send "\r" > expect eof > > spawn rsync -e "ssh -p 2222" -arvz --delete /etc/mail/ > [email protected]:/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 > -- Regards, {A} -- http://mm.glug-bom.org/mailman/listinfo/linuxers

