Home Man
Search
Today's Posts
Register

HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Rsync an rcp error

Tags
hp-ux, solved

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 02-12-2018
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 :

Code:
# 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 :

Code:
# 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 :

Code:
# cat .rhosts
+

I am still not able to transfer the files. What am I doing wrong and how do I resolve the problem?
# 2  
Old 02-13-2018
Quote:
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]
rsync is not properly installed on the remote node. "remote command not found" means it cannot invoke rsync on the remote system.
# 3  
Old 02-14-2018
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 :

HTML Code:
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
Code:
#whereis rsync

, I can see the path to it :

Code:
/usr/local/bin/rsync

Moderator's Comments:
Rsync an rcp error Please use CODE tags as required by forum rules!

Last edited by RudiC; 02-14-2018 at 08:39 AM.. Reason: Added CODE tags.
# 4  
Old 02-14-2018
Your local system needs to be able to launch rsync on the remote system when it needs to and that isn't working.
# 5  
Old 02-14-2018
I resolved the problem by linking /usr/local/bin/rsync to /usr/bin/rsync.
# 6  
Old 02-14-2018
Addition of the following switch (with existing of course) should solve your problem :
Code:
--rsync-path=/usr/local/bin/rsync

Without linkage on HPUX systems.

Regards
Peasant.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need fix for rsync Error due to version mismatch mohtashims Shell Programming and Scripting 1 02-28-2018 08:25 AM
Rsync Error: rsync: link_stat failed: No such file or directory (2) mohtashims Shell Programming and Scripting 2 02-06-2018 09:21 AM
Rsync error c0i0t3 UNIX for Advanced & Expert Users 4 12-11-2016 02:24 PM
Error while running Rsync lovelysethii Shell Programming and Scripting 4 09-03-2013 05:49 AM
Error while running Rsync through Crontab lovelysethii UNIX for Advanced & Expert Users 4 08-22-2013 12:54 PM
rsync - remote connection error MVEERA Solaris 1 11-24-2011 02:32 PM
rsync Error treds UNIX for Dummies Questions & Answers 2 06-09-2010 10:31 AM
[BASH] rsync - error on destination PaganoM Shell Programming and Scripting 0 03-20-2010 06:59 AM
Rsync Error treds UNIX for Dummies Questions & Answers 0 03-10-2010 02:56 AM
parsing error when I run RSYNC tfort73 AIX 3 09-11-2009 10:26 AM


All times are GMT -4. The time now is 01:13 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password