please help ftp script issue

hi,

I have ftp script where the user name has "\" in it and my script unable to detect it....here is what I am doing...

`ftp -vin <<- FTP >> log.txt 2>&1
      user ibm\user password
      FTP`

my log says..
user ibmuser not found...

please help.....

Try escaping the \

`ftp -vin <<- FTP >> log.txt 2>&1
      user ibm\\user password
      FTP`

Tried it...did not work...gives me same result any more ideas please....

Ignoring the awful practice of having punctuation characters other than underscores and hyphens in a username, I was able to get this to work by using a .netrc file

machine localhost login ibm\\user password password

Then using the command line:

ftp -vi localhost 1>>log.txt 2>&1 <<- FTP
ls
FTP

Here is how I do mine with the slash in the username, the quotes around the variable seem to take care of the issue.

  HOST='ipaddress'
    USER='domain\\username'
    PASSWD='password'
    ftp -v -n $HOST &gt;&gt; ftp.log &lt;&lt;END_SCRIPT
    quote USER "$USER"
    quote PASS $PASSWD
    cd My/Path/To/Files
    prompt
    bin
    mput \*
    quit

END_SCRIPT