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/01/18 21:50] – [Program] wedgehaas:spring2014:unix:projects:archive_handling [2014/02/04 19:36] (current) wedge
Line 44: Line 44:
  
 =====Procedure===== =====Procedure=====
-It is your task to  +In the UNIX Public Directory you will find a **projects/archive_handling** subdirectory.
-=====Execution===== +
-Several operating behaviors are shown, namely, with and without command-line arguments and 1-, 2-, and 3-digit values.+
  
-<cli> +There you will find two existing archives
-lab46:~/src/cprog/multby11$ ./multby11 + 
-Enter value: 345 +  * archive1.zip 
-345 x 11 = 3795 +  * archive2.tar.bz2 
-lab46:~/src/cprog/multby11$  + 
-</cli>+You'll probably want to make a copy of these to some working directory in your home directory.
  
-The execution of the program is short and simpleobtain the input, do the processingproduce the outputand then terminate.+Essentially, I want you to do the following: 
 + 
 +  - Figure out the format of each archive, and read up on the available tools for manipulating them 
 +  - Extract the contents of the two archives and study them (make sure you keep track of what is in which archive) 
 +  - Analyze the archive contents and find any corrupt or empty files. They are not needed. 
 +  Arrange the remaining content by the following criteria: 
 +    * name the files smallestsmall, big, biggest, and tack on the appropriate extension 
 +    * the smallest file will be whichever file represents the smallest/lightest of the four things (not file size but contextual content of what the file is describing)... similarly as appropriate with small, big, and biggest (the largest/heaviest of the four things) 
 +  - Create a new archive, called **myarchive.tar** containing only these size-themed files. 
 +    * do NOT store any paths in the archivejust put the files at base level 
 +  - Compress **myarchive.tar** on second highest (on the bestnot fastest end of the spectrum) compression level in gzip to create the appropriately named **myarchive.tar.gz** 
 +    * also use the **-n** argument to aid in the verification step below 
 +  - Submit **myarchive.tar.gz** using the submit tool.
 =====Reflection===== =====Reflection=====
 Be sure to provide any commentary on your opus regarding realizations had and discoveries made during your pursuit of this project. Be sure to provide any commentary on your opus regarding realizations had and discoveries made during your pursuit of this project.
  
-  * Does this process work for four digit numbers+  * Why do you suppose tar works the way it does
-  * How about five digit numbers? +  * What might be some benefits of separating archival and compression functionality?
-  * Do you see a pattern for now this trick could be extended?+
  
 =====Submission===== =====Submission=====
 To successfully complete this project, the following criteria must be met: To successfully complete this project, the following criteria must be met:
  
-  * Code must compile cleanly (no warnings or errors) +  * Submit a copy of your archive to me using the **submit** tool.
-  * Executed program must display a total of 1 or 2 lines (depending on presence of argument) +
-  * Output must be correct, and match the form given in the sample output above. +
-  * Code must be nicely and consistently indented (you may use the **indent** tool) +
-  * Code must be commented +
-    * have a properly filled-out comment banner at the top +
-    * have at least 20% of your program consist of **<nowiki>//</nowiki>**-style descriptive comments +
-  * Output Formatting (including spacing) of program must conform to the provided output (see above). +
-  * Track/version the source code in a repository +
-  * Submit a copy of your source code to me using the **submit** tool.+
  
 To submit this program to me using the **submit** tool, run the following command at your lab46 prompt: To submit this program to me using the **submit** tool, run the following command at your lab46 prompt:
Line 81: Line 81:
 <cli> <cli>
 $ submit unix archives myarchive.tar.gz  $ submit unix archives myarchive.tar.gz 
-Submitting cprog project "multby11": +Submitting unix project "archives": 
-    -> multby11.c(OK)+    -> myarchive.tar.gz(OK)
  
 SUCCESSFULLY SUBMITTED SUCCESSFULLY SUBMITTED
Line 88: Line 88:
  
 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 submission==== 
-To verify you submitted successfully, you may run the following (from anywhere on lab46): 
- 
-<cli> 
-lab46:~$ verify cprog multby11 
-multby11: submitted successfully 
-</cli> 
  
-Note if automated assessment is available for the project, you may actually see results in the output as well. 
haas/spring2014/unix/projects/archive_handling.1390081845.txt.gz · Last modified: 2014/01/18 21:50 by wedge