ftp files from local sys to unix server

Hi All,

can anybody explain me how to ftp files from local system to unix server using Shell scripting without using any softwares.
i have developed some code but its not wrking.

lclpath=/dba58/d039/ftppubd/ajay
echo $lclpath
cd $lclpath
user='rajesh'
pswd='rajesh'
host="3.209.136.253"
ftp_path="D:\Others\back2school"
ftp -v -n $host << EOF
user $user $pswd
lcd $ftp_path
get raji.txt
bye
EOF
echo "FTP DONE"

the above code not working...
if any help will appreciate.

regards
rajesh

When you have a problem, try to describe it exactly, thanks. What error message do you get?

Thank you for your reply zaxxon.
I didn't get any error and its hanging while executing..
don't know the mistake in the script.

Regards
Rajesh

At which point/command is it hanging?
When you try the commands manually exactly as they are in the script, does this work?

after lcd its hanging..
can you please check it..?

rajesh, shouldn't you be using put instead of the get, if you are sending a file across?