How to compare file size after ftp?

Is possible if I want to campare file size on source and destination after ftp transfer?

If anybody know, please explain to me.

Best way is to have a MD5 Checksum file accompany the source file. Download both the source file and checksum file, then run "md5sum" against the downloaded file and compare with the cksum from originating source.

If you can have source generate that file, then you are really suck with the "long listing" command to ftp, if the destination site supports it, to get the file size. You'll have to parse that output and compare size to the downloaded file system copy.

  • David