Good practices for a robust FTP script

Posted by dutch on Stack Overflow See other posts from Stack Overflow or by dutch
Published on 2010-06-10T07:53:19Z Indexed on 2010/06/10 8:02 UTC
Read the original article Hit count: 409

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about ftp