Good practices for a robust FTP script
- by dutch
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?