Hmmm... it is not the right way to do. You have to pass a bunch of commands to the ftp session. To do this you can enclose them in a "here document". Furthermore, provided the remote server is "setzer", you must give username and password to login (unless you've setup autologin by editing the file ~/.netrc). For example
ftp -ni setzer << EOS
user username password
The -n option prevents autologin, the -i option turns off interactive prompting during multiple transfers (if any). Also you cannot specify a full path in the put command: you have to change to a local directory (see the lcd command) before doing transfer. Hope this helps.