rsync & expect Help required Immediately.
From: Amit Kaushal (amit_at_billdesk.com)
Date: 10/29/03
- Next message: Scott Beasley: "Re: ffidl and pascal calling convention"
- Previous message: Don Libes: "Re: exp_fexpectl does not work the same as expect shell, bug in C expect? Updated"
- Next in thread: Glenn Jackman: "Re: rsync & expect Help required Immediately."
- Reply: Glenn Jackman: "Re: rsync & expect Help required Immediately."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Oct 2003 11:38:44 -0800
Hi,
I am trying to automate the process of rsync between to servers using
expect.
The script below is NOT doing what i want it to do. I have named this
script as expect.sh
#!/usr/local/bin/expect
set timeout -1
rsync -avvv -e ssh rsync@xxx.xxx.xxx.xxx:/Files_Outgoing/
/home2/aaaa/Y/FILES/UPLOADED/
expect "Password:"
send "*******"
i invoke it like
sh expect.sh ( The output is pasted below, First of all it dumps the
rsync command on to the screen and then it gets stuck at password
prompt)
sh expect.sh
opening connection using ssh xxx.xxx.xxx.xxx -l rsync rsync --server
--sender -vvvlogDtpr . /aaa/aaa/Files_Outgoing/
rsync@xxx.xxx.xxx.xxx's password:
Permission denied, please try again.
rsync@xxx.xxx.xxx.xxx's password:
Permission denied, please try again.
rsync@xxx.xxx.xxx.xxx's password:
Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at
io.c(165)
_exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)
couldn't read file ":\r": no such file or directory
expect.sh: send: not found
Can anyone point me in the right direction. Am really stuck and all
help/ advice would be great.
You may mail me at amit@billdesk.com
Thanks in advance,
Best Regards,
Amit Kaushal
- Next message: Scott Beasley: "Re: ffidl and pascal calling convention"
- Previous message: Don Libes: "Re: exp_fexpectl does not work the same as expect shell, bug in C expect? Updated"
- Next in thread: Glenn Jackman: "Re: rsync & expect Help required Immediately."
- Reply: Glenn Jackman: "Re: rsync & expect Help required Immediately."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|