× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Chatted this up on Ryver IBMiOSS.
Apparently if the $PATH isn't set on the remote account rsync executable
not found.
So, like, if the shell for the account on the remote machine is
/usr/bin/bash (or on IBM i /QOpenSys/pkgs/bin/bash) then you just add the
appropriate path to the .bashrc
You're making sure /usr/bin is in $PATH for a Linux account or
/QOpenSys/pkgs/bin in the $PATH for the IBM i remote account.
But I'd guess this would happen on both boxes if the remote account were
set up default. With IBM i, probably the remote account was never set up
for the new bash via the Db2 for I SQL incantation or via PASE *chsh*


On Mon, Oct 4, 2021 at 7:14 AM Diego E. Kesselman <diegokesselman@xxxxxxxxx>
wrote:

Pete,

Sorry, if running from IBM trying to pull data from Linux box:

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

Diego E. Kesselman
diegokesselman@xxxxxxxxx



El 04/10/2021, a las 08:11, Diego E. Kesselman <diegokesselman@xxxxxxxxx>
escribió:

Hi Pete,

You can fix this adding :

--rsync-path=/QOpenSys/pkgs/bin/rsync

BTW: You can remove the "-e ssh”


Diego E. Kesselman
diegokesselman@xxxxxxxxx <mailto:diegokesselman@xxxxxxxxx>



El 04/10/2021, a las 07:11, Pete Helgren <pete@xxxxxxxxxx <mailto:
pete@xxxxxxxxxx>> escribió:


Trying to run rsync from a linux box to IBM i. I found some older
articles about how to set it up and it certainly is easy to install. But,
I am trying to understand what is needed at the IBM i end of things to
allow rsync to run. I have SSH configured and when I run an rsync command
to synchronize files I get this error (not real domains):

[phelgren@873822-prodLR70 test]$ rsync -avz -e ssh
pete@xxxxxxxxxxxxxxxxx <mailto:pete@xxxxxxxxxxxxxxxxx>:/home/pete ./
pete@xxxxxxxxxxxxxxxxxx <mailto:pete@xxxxxxxxxxxxxxxxxx>'s password:
bsh: rsync: not found
rsync: connection unexpectedly closed (0 bytes received so far)
[Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226)
[Receiver=3.1.2]

I can connect using ssh with both a password and a private key so that
is working. But, the rsync command doesn't seem to be found (although bsh
as a shell is odd...or not) and I can run rsync in the pase bash shell and
linux with no problems.

Suggestions?

--
Pete Helgren
www.petesworkshop.com <http://www.petesworkshop.com/>
GIAC Secure Software Programmer-Java
AWS Certified Cloud Practitioner
Microsoft Certified: Azure Fundamentals
Twitter - Sys_i_Geek IBM_i_Geek
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.