Checksum on data orders
-
- Posts: 48
- Joined: Thu Jan 24, 2008 1:33 pm America/New_York
- Has thanked: 1 time
- Been thanked: 1 time
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: 1469
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 5 times
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
-
- Posts: 48
- Joined: Thu Jan 24, 2008 1:33 pm America/New_York
- Has thanked: 1 time
- Been thanked: 1 time
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: 1469
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 5 times
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
Sean
![Smile :)](./images/smilies/icon_e_smile.gif)
Sean