I have a bash script to upload some files to my webserver. The problem is that it seems to assume that when they get to the webserver they are missing the final 4kb of the file.
On my computer the file is listed as 8kb (rounded up because blocks are 4kb) yet only 4kb are uploaded.
Here's the funny/confusing part, this only affects the last file uploaded as if it's closing the session early.
Is this a known issue? The man page has nothing that I could see.
Below is a copy of the script (minus login details of course):
ftp -in <ftp.host> <<EOF
quote USER <username>
quote PASS <password>
binary
put file1.xml
put file2.xml
put file3.xml
put file4.xml
put file5.xml
put file6.xml
put file7.xml
put file8.xml
put file9.xml
put file0.xml
quit
EOF
A link to one of the example files is http://woarl.com/xml/f8d9b3b981a356efc1ecbb705b369c9e.xml