简体   繁体   English

mput 在 FTP 传输期间不传输所有文件

[英]mput Not Transferring All Files During FTP Transfer

I'm having issues with my Unix FTP script...我的 Unix FTP 脚本有问题...

It's only transferring the first three files in the directory that I'm local cd'ing into during the FTP session.它只传输我在 FTP 会话期间本地 cd 到的目录中的前三个文件。

Here's the bash script that I'm using:这是我正在使用的 bash 脚本:

#!/bin/sh
YMD=$(date +%Y%m%d)
HOST='***'
USER='***'
PASSWD=***
FILE=*.png
RUNHR=19
ftp -inv ${HOST} <<EOF
quote USER ${USER}
quote PASS ${PASSWD}
cd /models/rtma/t2m/${YMD}/${RUNHR}/
mkdir /models/rtma/t2m/${YMD}/
mkdir /models/rtma/t2m/${YMD}/${RUNHR}/
lcd /home/aaron/grads/syndicated/rtma/t2m/${YMD}/${RUNHR}Z/
binary
prompt
mput ${FILE}
quit
EOF
exit 0

Any ideas?有任何想法吗?

I had encountered same issue, I have to transfer 400K files but mput * or mput *.pdf was not moving all files in one go tried timeout :fails tried -r recursive :fails tried increasing Data/control timeout in IIS :fails tried -i Prompt scripting fails我遇到了同样的问题,我必须传输 400K 文件,但 mput * 或 mput *.pdf 并没有一次性移动所有文件尝试超时:失败尝试 -r 递归:失败尝试增加 IIS 中的数据/控制超时:失败尝试 - i 提示脚本失败

Finally went to use portable filezilla connect to from source and transferred the all files最后去使用便携式filezilla从源连接并传输所有文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM