On Tue, Nov 4, 2008 at 2:33 PM, Warren Oates wrote:

> You'll have to use an expect script for that, something like this one:
>
> #!/usr/bin/expect -f
>
> ## Note: set crontab's $PATH to search /usr/local/bin (or wherever
> you've installed rsync 3) first
> spawn rsync -az --delete
> wife@192.168.0.107:~/Documents/Eudora?Folder/ /Volumes/Backups/Eudora\
> Folder
> expect "*?assword:*"
> send "********\r"
> set timeout -1
> expect eof
>
> This is instructive in another way -- both the sender and receiver
> are Intel OS X 10.5.5; note how rsync handles spaces in filenames
> compared to to the filesystem itself.


Well, that got totally mangled, didn't it.



#!/usr/bin/expect -f

## Note: set crontab's $PATH to search /usr/local/bin (or wherever
you've installed rsync 3) first

## all on one line, space after "?Folder/"
## I hate gmail sometimes
spawn rsync -az --delete wife@host:~/Documents/Eudora?Folder/
/Volumes/Backups/Eudora\ Folder
## end of that line

expect "*?assword:*"
send "********\r"
set timeout -1
expect eof


--
W. Oates


--
W. Oates
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html