<div dir="ltr"><div dir="ltr">On Sat, Jun 27, 2020 at 7:17 AM Chandrasekar Natarajan wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">Kindly help me to resolve this.</div></div></blockquote><div><br></div><div>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).</div><div><br></div><div>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):</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div><font face="monospace">#!/bin/sh</font></div></div><div class="gmail_quote"><div><font face="monospace">for arg in "${@}"; do</font></div></div><div class="gmail_quote"><div><font face="monospace">  case "$arg" in</font></div></div><div class="gmail_quote"><div><font face="monospace">    -*) echo "Option: $arg" ;;</font></div><div><font face="monospace">    *:*) echo "Remote arg: $arg" ;;<br>    *) echo "Local arg: $arg" ;;<br></font></div></div><div class="gmail_quote"><div><span style="font-family:monospace">  esac</span><br></div></div><div class="gmail_quote"><div><font face="monospace">done</font></div></div></blockquote><div class="gmail_quote"><div><br></div><div>Just ignore that saying the port number is a local arg (it's an arg to the <font face="monospace">--port</font> option) or change your run to use "<font face="monospace">--port=4783</font>" (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).</div><div><br></div><div>..wayne.. </div></div></div>