On Sat, Jun 27, 2020 at 7:17 AM Chandrasekar Natarajan wrote: > Kindly help me to resolve this. >
One thing you can do is to change the initial command from "rsync" to "/usr/bin/rsync" (if that is where the real command is installed in your setup) in order to try to avoid any script & shell alias effects (but it won't avoid any popt alises). It's only your system where the problem exists so you're the one that needs to figure out where the local non-option arg is coming from in your setup (since it's something wrong outside of rsync and outside of the never-exact command you say you're running). If all else fails, move the real rsync aside and put a shell script in its place that tells you the args it's getting (be sure to install this in place of /usr/bin/rsync or whatever path the real rsync is installed at): #!/bin/sh for arg in "${@}"; do case "$arg" in -*) echo "Option: $arg" ;; *:*) echo "Remote arg: $arg" ;; *) echo "Local arg: $arg" ;; esac done Just ignore that saying the port number is a local arg (it's an arg to the --port option) or change your run to use "--port=4783" (with an equal sign) since the script doesn't know which options take args. That should show you exactly what rsync is getting. If that shows no issues then you should be looking for a popt alias that is injecting an extra local arg into the command line (as described earlier). ..wayne..
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html