Here is a interactive ftp script, you can modify it to run batch
#!/usr/bin/ksh
clear
#
# Gather ftp information
#
echo "*******************************************************"
echo "* Generic ftp, provide complete responses to prompts. *"
echo...