The END_SCRIPT is marking the end of the ftp session that begins with the line
Code:
ftp -n $HOST <<END_SCRIPT
The HOST variable is the remote host. The script presumes that you will be in directory containing FILE on the local machine when you execute the script.
You may want to check out
C-Kermit if you will be doing scripted ftp transfers.