FTP via shell script

Hi,
I need to upload a file via ftp. I have given :

    ftp -n $HOST <<END
    quote user $USER
    quote pass $PASSWD
    prompt off
    put bus.txt
    quit
    END

Its throwing a syntax error at "<<" symbol. What should be done for this ??

Hey risshanth,

Have you considered using the .netrc file for FTP?

Hi,
I don have idea about that .. can u please explain about that ??