First, edit your post to use code-tags. Select the code and hit
this icon
Second, Never ever, directly post the "real" script. Always change the confidential information like servername, credentials, paths etc.
Third, Use some appropriate subjects instead "Help me". Better to read the forum rules
here.
Your scripts has multiple issues. Did you write the script yourself? Or took it form somewhere?
You see, you have used
scp and later used the real ftp commands like
put,quit etc.
My understanding is, you have mixed two different type of scripts.
the plain ftp script which uses here-document and other which uses scp.
Please check with the source of the scripts.
the hint is,
scp directly copies the file across the server. You dont need to
put the file explicitly.