zopencommunity / rsyncport

A file synchronization utility
Apache License 2.0
0 stars 1 forks source link

Garbled message when running it through ssh #8

Open stevchen-ibm opened 1 year ago

stevchen-ibm commented 1 year ago

I am encountering an issue when trying to run an rsync command in an ssh environment. The output I am receiving is garbled and not readable. I was wondering if anyone would be able to help me troubleshoot this issue. I have already tried running the same rsync command in an interactive shell and it seems to work fine.

ssh <zos user>@<zos host> "export _BPXK_AUTOCVT=ON;cd <zopen tools install path>/rsync && . ./.env && rsync -n -av . /tmp/blah"

??>??>ŀ?>???_?>?/%???%??%??Ȏ???/????????????`??_??%/ǎ??>Ύ?>????Ŏ??%?/???>?????????/??ˎ??>???>??`>Ď??>??`>???%???/?????/??_/>???/??_/>_/>????/??_/>_/>???`>???%????/??_/>_/>???`>?????/??_/>_/>????/??_/>_/>???`>????>??????>Ȁ????`??ˀ??????????????`??ˀ????????`?????Ď???/%???:???ˀ????????????????????ˀ??????????߀??+??% 
MikeFultonDev commented 1 year ago

What @stevchen-ibm is doing should work. An even simpler example:

ssh <host> "cd <zopen tools install path>/rsync && . ./.env && rsync --version"

It also fails for me.

MikeFultonDev commented 1 year ago

Note that:

rsync --version

works fine if performed interactively as @stevchen-ibm also mentioned for his example.

MikeFultonDev commented 1 year ago

This also works fine:

unset _BPXK_AUTOCVT; unset _CEE_RUNOPTS; unset _TAG_REDIR_ERR; unset _TAG_REDIR_OUT; unset _TAG_REDIR_IN; export PATH="/bin"; . ./.env; rsync --version
lnlyssg commented 4 months ago

export _BPXK_AUTOCVT=ON resolves this issue in my experience