Restricted charecters in FTP password

hi

i am unable to connect to FTP server.My FTP password contain one special charecter '#'.it might be the problem for connecting.please clarify regarding this special charecter in the password.i need some information about restricted charecters in the shell script.

thanks

How do you try to connect and fail: from inside a script or on the command line?

hi
i am trying from the shell script

hi
from command line i am able to connect the remote server.but from the shell script with same password is not connecting.in the password last charecter is '#'.

Try something like this:

echo "
verbose
open nodename
user username 'mypasswd#'
get somefile
bye
"  | /usr/bin/ftp -n

# is the script "comment" character - it begins a comment.

Hey I've tried with the password having a # at the end. Try this

Let the variables username and password have the corresponding username and password or have it directly in the script.

ftp -nv $IP_ADDRESS << cmd
user $username $password
get file1
get file2
quit
cmd