What are the things a script should do to ensure that files have been FTPed correctly? Following are the things I have in mind:
1) use high level scripting language like python or perl instead of shell script for a more comprehensive functionality and error handling
2) check that the file exists at the destination after FTP
3) check destination file size. This is a little bit difficult because file size will change if the source and destination are running different OS. Any tips on how to go about this?
What are the things a script should do to ensure that files have been
Share
Rather than checking the file size I’d suggest creating a checksum or similar and sending separately so that you can be sure that there were no corruption. I think MD5 Hashes are quite common and so there are probably plenty of free utils or sample code.