User Tools

Site Tools


haas:spring2014:unix:projects:archive_handling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2014:unix:projects:archive_handling [2014/02/04 09:53] – [Verify] wedgehaas:spring2014:unix:projects:archive_handling [2014/02/04 19:36] (current) wedge
Line 89: Line 89:
 You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches. You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
  
-=====Verify===== 
-<WRAP info>UPDATE: Turns out I forgot to consider the resulting timestamp of the final archive, so this verification process will **ONLY** work if you add the **-n** argument to **gzip** when you are doing the compression step (note you may be providing gzip with other arguments- you still want those too). With **-n**, timestamps are not included in the gzip header, which is what was causing the different MD5 sums. With this change, individual verification is now possible.</WRAP> 
- 
-To determine if you potentially did things correctly, the following steps can be followed: 
- 
-====Check compression==== 
-Did you compress the resulting archive in accordance with project specifications? 
- 
-<cli> 
-lab46:~$ dd if=myarchive.tar.gz of=header.out bs=1 count=10 2>/dev/null; md5sum header.out; rm -f header.out 
-350a25a01ac9f94d4e42eeb0cde2e31f  header.out 
-</cli> 
- 
-A quick way to check and see if you did everything right is to compute the MD5sum hash of the archive and see if it matches mine: 
- 
-<cli> 
-lab46:~$ md5sum myarchive.tar.gz 
-cc247da7f4d4c4d29e8cc4dda2b03f10  myarchive.tar.gz 
-lab46:~$  
-</cli> 
- 
-That is MY md5sum of the archive, in accordance with the project requirements. If your archive's MD5 sum is **identical** to mine, then you can rest assured you did it right. 
- 
-It also seems many have interpret the file naming criteria differently than I had intended (for example, on file size vs. conceptual size of what the images contain). If you did this, you will not get the above checksum... you will like get this one: 
- 
-<cli> 
-lab46:~$ md5sum myarchive.tar.gz 
-a1eac6601e20f028ff158651359ec890  myarchive.tar.gz 
-lab46:~$  
-</cli> 
- 
-Ultimately, I will accept either. 
haas/spring2014/unix/projects/archive_handling.1391507623.txt.gz · Last modified: 2014/02/04 09:53 by wedge