Ftp to directory with special character

Hi.

I need a help in fixing the issue related to FTP files to directory name has special character.

ftp -n machinename <<EOF > ftplog.lis
user login name password
cd home/directory - 1/destinantion
put filename
bye
EOF

In the ftplog.lis, I am seeing a error message like home.directory - : The system cannot find the file specified.

Please help me
Arvy

You need to escape the spaces in the directory name. Either one of these should work:

cd "home/directory - 1/destinantion"
cd home/directory\ -\ 1/destinantion

Regards,
abjr