方法一:
echo "open 21.244.88.129 user glxtftp glbzuser bin prompt off cd /glxt/DBINFO lcd /tmp put $dblog bye" |ftp -n >/dev/null 2>&1
方法二:
ftp -ivn <<KATE open $1 user $2 $3 cd $4 binary lcd $5 passiv put $6 bye KATE