#1:DBhostname, 2:ftp_con_user, 3:ftp_con_pass, 4:toget Dir(AP), 5:filename(fullpath /xxx/.../xxx.PDF) 6:転送先ファイル名 wseq_xxx.PDF
echo "DB:$1" "user:$2" "pass:$3" "todir:$4" "filefullpath:$5" "renamefilename:$6"
ftp -n <<EOF
open $1
user $2 $3

lcd $4
binary
prom
get $5 $6
bye
EOF
