Here is a good example where you can setup a script to semd out files
#!/bin/bash
set -x
HOST='web8.host.com'
USER='username''
PASSWD='password'
do_ftp_mput()
{
ftp -d -in -i $HOST <<EOT
user $USER $PASSWD
cd /path/path/path
binary
$1
EOT
}
filenames=`ls`
put_commands=`echo "$filenames" | sed 's/^/put /'`
echo "$put_commands"
do_ftp_mput "$put_commands"
#mv $filenames path/path/path
exit 0