FTP issue

I have tried to ftp from unix to local window machine. I have taken this piece of code from forum and tried ...

#!/bin/ksh
#Usage example: ftpscript sanjit.txt C:/citi/readme.txt
localFile=$1
remoteFile=$2

ftplog=loglog.log
echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $ftplog

# do the FTP put

ftp -i -n <<EOF >> $ftplog
open 182.101.11.166
user user password
put $localFile $remoteFile
ls $remoteFile
quit
EOF

But once executing the script, nothing have been responded from the unix.Simple i am comming out by Ctrl C.

I have checked :
$ uname is SunOS

Can anyone tell is something goes wrong the above code or should something need to set in Unix only.

There are few query posted seems Solaries does have some other limiation. Can any Unix Guru address this??

Thanks in advance

First this should be in "here document" like

Z1=`ftp -i -n <<EOF >> $ftplog
open 182.101.11.166
user user password
put $localFile $remoteFile
ls $remoteFile
quit
EOF`

can you tell us what error you are getting or check it from log file.I guess you dont have ftp services running on your windows box.You can install with your OS install cd.