Help with FTP Script which is causing "syntax error: unexpected end of file" Error

Hi All,

Please hav a look at the below peice of script and let me know if there are any syntax errors.

i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong here.

 
cd $downloaddir
        ftp -i -v -n $cramer6  <<**>> $logdir/$logfile
        user $USER_CRAMER6 $UPASSWD_CRAMER6
        cd $FILEDIR_CRAMER6
        mget $(date '+etn-nodes_20%y%m%d*.csv')
        bye
        **

when i excute the script its giving me "syntax error: unexpected end of file" Error

please help, its a bit urgent.

Thanks!!

Delete the space before the closing ** so it is at the beginning of the line.