don't use this, but assuming the send string is the actual command you want to issue and expect string is what you are expecting as a reply in the ftp shell.
For expample if i ftp to ftp.openbsd.org and issue a 'cd /' as my send string your expect string would for 250 or 250 CWD command successful
--Rob