Checksum on data orders
Checksum on data orders
I have noticed that sometimes the tar files are corrupted on orders I have placed (with the Oceancolor L1&2 Browser).
For individual files I understand there are checksums available. It would be great if there were checksums as well for the tar files in my order...
Sometimes I notice to late that a tar file is corrupt and then my order has expired already...
Thanks!
For individual files I understand there are checksums available. It would be great if there were checksums as well for the tar files in my order...
Sometimes I notice to late that a tar file is corrupt and then my order has expired already...
Thanks!
Tags:
-
- User Services
- Posts: 1407
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 1 time
Re: Checksum on data orders
It would take some changes to implement a checksum for the ordering system...but until we can find the time to implement something, you can use a simple check with the "-t" option to tar. If this returns an error, then the file was corrupted.
A bash example:
If the echo returns anything other than zero, there was an issue...
Sean
A bash example:
Code: Select all
$ tar -xOf requested_files_1.tar >& /dev/null
$ echo $?
Sean
Re: Checksum on data orders
Thanks, Sean. I started doing something similar indeed. Your temporary solution is a more simple way than how I did it.
I assume you meant "tar -tf", not "tar -xOf"
I assume you meant "tar -tf", not "tar -xOf"
-
- User Services
- Posts: 1407
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 1 time
Re: Checksum on data orders
tar -tf can work, but some for some flavors of tar it doesn't report the errors, but -xOf will 
Sean

Sean
Re: Checksum on data orders
Ah, I get it now. I got an error earlier, confused the O for an 0. Yes, indeed, this is the way to do it.