What Operating System are you issuing the ftp command on?
What Operating System are you connecting to (if known)?
What (in words not code) are you trying to do?
Brainspark!
Is the remote computer addressed by a URL (like a website) or a computer with a normal unix hostname? If it's not a URL, you do not want the "-u" switch to FTP because it is expecting a URL (eg: ftp://remotehost.com) not a computer hostname. In your case it is taking the character "n" after the "-u" as the URL !
There are probably other issues in the script with using "quote" for no apparent reason but you might be connecting to a non-unix system.
Footnote: Can you do the file transfer successfully from the command prompt? If you can, please post the sequence you type and it can no doubt be scripted.
@cfajohnson
We have several thousand ftp scripts executing per day in a mixed unix environment. The scripting to achieve consistent reliability is not at all easy but it can be done without replacing each remote system.