shell如何将文件上传至ftp
#!/bin/bash file=$1 ip=$2 port=$3 user=$4 pwd=$5 /usr/bin/lftp -p $port $ip <<EOF user $user $pwd set ftp:ssl-auth SSL set ftp:ssl-allow true set ftp:ssl-force true set ftp:ssl-protect-data true set ftp:ssl-protect-list true cd devilfish put $file quit EOF