Rsync an rcp error

Hi,

I have installed rsync (together with its dependencies) in both source and destination HPUX servers (V 11.31). However when I attempt to copy files over (as user root) I get this error :

# rsync -avz ./* root@10.97.131.4:/tmp/copy
Password:
sh: rsync:  not found.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]
#

How do I resolve this problem?

I also tried rcp (As it is mentioned in the HPUX depot page that rsync is a replacement for rcp). I get this error :

# rcp -p ./* root@10.97.131.4:/tmp/copy
rcmd_af: connect: 10.97.131.4: Connection refused

However, I can ping 10.97.131.4.

I add the ".rhosts" file in the destination, and the entry in this file is :

# cat .rhosts
+

I am still not able to transfer the files. What am I doing wrong and how do I resolve the problem?

rsync is not properly installed on the remote node. "remote command not found" means it cannot invoke rsync on the remote system.

But I have installed the rsync packages and also its dependencies.
How come it is not properly installed? How do I verify this?

When I do an swlist, I can see all the packages needed :

gettext                               0.19.8.1       gettext
libiconv                              1.15           libiconv
libunistring                          0.9.7          libunistring
popt                                  1.16           popt
rsync                                 3.1.2          rsync

And when I do a

#whereis rsync

, I can see the path to it :

/usr/local/bin/rsync

Your local system needs to be able to launch rsync on the remote system when it needs to and that isn't working.

I resolved the problem by linking /usr/local/bin/rsync to /usr/bin/rsync.

Addition of the following switch (with existing of course) should solve your problem :

--rsync-path=/usr/local/bin/rsync

Without linkage on HPUX systems.

Regards
Peasant.