简体   繁体   中英

mput Not Transferring All Files During FTP Transfer

I'm having issues with my Unix FTP script...

It's only transferring the first three files in the directory that I'm local cd'ing into during the FTP session.

Here's the bash script that I'm using:

#!/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

Finally went to use portable filezilla connect to from source and transferred the all files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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