ftp -i -n otherhost << EOF -i for "don't prompt before filetransfers"
-n for "don't ask for user/password"
user myname mypassword username and password
mput foo bar put normal ftp comamnds here
EOF
echo "
user myname mypassword username and password
mput foo bar put normal ftp commands here
" | ftp -i -n otherhost -i for "don't prompt before filetransfers"
-n for "don't ask for user/password"
wget ftp://myname:mypassword@otherhost/foo download foo from otherhost
ncftpput -u myname -p mypassword otherhost . foo upload files
ncftpget -u myname -p mypassword otherhost . bar download files