On Mon, 2008-09-29 at 10:37 +0530, Ravi Thati wrote:
> I have written script to download a directory from remote machine
> which contains the always the updated data. I want to download that
> directory onto my local machine periodically with --link-dest option
> to my old download directory.
>
> I have automated the script using " expect scripting"


You should consider using ssh public-key authentication (see
ssh-keygen(1)) rather than automating the password via expect.

> When I run the script I get the following output and it hangs
> indefinitely.
>
> ~/ravit/ravi.ex "--link-dest=/Build56/source/"
> "user@remotemachine:/Build58/source/" "./source/"
> exp_spawn rsync -avz --stats --progress --partial
> --link-dest=/Build56/source/
> user@remotemachine:/Build58/source/ ./source/
> user@remotemachine's password:
> receiving file list ...
> 20900 files...


Does the same thing happen if you run rsync interactively without
"expect"? Try raising the verbosity to -vvv to get more information on
where rsync is stalling.

Matt

--
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