Anything wrong with this

Does anyone see anything wrong with this.
#getInfraFiles()
#{
# cd Infra/$DAY
# rm *
# /usr/bin/ftp -i -n $LINE << cmd
# user "$USER" "$PASSWD"
# cd $INFRAPATH
# binary
# mget *
# bye
#}
besides that its commented out

maybe:

getInfraFiles() 
{
 cd Infra/$DAY
 rm -f *
 /usr/bin/ftp -i -n $LINE << cmd
 user "$USER" "$PASSWD"
 cd $INFRAPATH
 binary
 mget *
 bye
cmd
}

two small changes...

Well i guess i should give more information now. I've got a script here and theis is a method/function that is in the begining of it that if i comment it out the script goes to the rest of it, but when I leave it in there it gives me an unexpected end of file error and quits. Even after i made those changes. I have a couple of other functions in this script also and they work fine. just this one and a very similar one give me issues

takin' it where jim's left off.....

loose the space [if there's one between '<<' and 'cmd' AND allign the matching here-doc 'cmd' to the beginning of the line - make sure there's no leading spaces:

getInfraFiles() 
{
 cd Infra/$DAY
 rm -f *
 /usr/bin/ftp -i -n $LINE <<cmd
 user "$USER" "$PASSWD"
 cd $INFRAPATH
 binary
 mget *
 bye
cmd
}

Thanks that worked. It was driving me nuts and to dull my mind i deicded to post something and get lost in the world of wiki