Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to do a remote 'md5sum' on a remote file without downloading?

819570Mar 2 2011 — edited Mar 2 2011
Hi,

Were using GNU/Linux x86_64.

We download a 4Gig file from a remote website once a month.

Because this site's policy is to release a new file 30 days after the previous one, we don't have a set date of the month to run our download.

Our idea was then to add logic to our shell script to use wget to do an 'md5sum' on a remote file.

The conventional method is to download the file first, then do an md5sum and compare it with the current copy.

If they match, delete the downloaded file. If they don't, replace the current file with the downloaded copy.

Our issue is: we'd do this check every morning, meaning we'd pull a 4Gig file every morning just to get its check-sum value.
We don't really have the disk space and we don't really want to tie up our network every morning with the 4Gig download.

Is there a way to do a md5sum remotely with out having to download the whole file using either 'wget' of lftp' or 'curl' or some ftp utility like that?

Is there a type of 'telnet' we could use?

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2011
Added on Mar 2 2011
4 comments
1,739 views