我有一个关于上传文件的shell脚本:
remodir="(Skip)"
host="(Skip)"
USER="(Skip)"
PASSWD="(Skip)"
localDir="(Skip)"
ftp -n $host <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
prompt
lcd $localDir
cd $remodir
epsv4 off
passive
mput *
quit
END_SCRIPT
exit 0
它可以将localDir文件复制到remodir 但它无法将localDir目录复制到remodir