HP-UX

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

Rsync an rcp error


👤 Login to reply

    #1  
Old 02-12-2018
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old 02-13-2018
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:11 PM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
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.
Sponsored Links
    #3  
Old 02-14-2018
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
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
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:11 PM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
Your local system needs to be able to launch rsync on the remote system when it needs to and that isn't working.
Sponsored Links
    #5  
Old 02-14-2018
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
I resolved the problem by linking /usr/local/bin/rsync to /usr/bin/rsync.
Sponsored Links
    #6  
Old 02-14-2018
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 July 2018, 10:28 AM EDT
Posts: 1,197
Thanks: 34
Thanked 370 Times in 318 Posts
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.
Sponsored Links
👤 Login to reply

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
Rsync Error: rsync: link_stat failed: No such file or directory (2) mohtashims Shell Programming and Scripting 2 02-06-2018 09:21 AM
Rcp error while transferring files Portabello AIX 5 01-22-2014 02:22 PM
Error while doing rcp to localhost coolket UNIX for Dummies Questions & Answers 2 07-14-2009 02:48 PM
rcp error trapping in rsh vvejendla Shell Programming and Scripting 2 11-21-2005 10:29 PM
rcp error divid_gil UNIX for Advanced & Expert Users 8 07-02-2004 01:28 PM



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

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





Not a Forum Member?
Forgot Password?