<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Levi -- I am going to partially answer
your question by sending you to a web page that explains the
purpose and use of tar files.<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.cs.duke.edu/~ola/courses/programming/tar.html">http://www.cs.duke.edu/~ola/courses/programming/tar.html</a><br>
<br>
Rather than sending me a bunch of files individually, you send me
one file that contains your code as well as your directory
structure so I can recreate it in my own workspace. This way you
are able to send me your code, your input files, and anything else
necessary to build and execute your programs.<br>
<br>
I will demonstrate their use again in class on Monday -- and how
to send them via e-mail on Cobra. Tar has MANY options and is
used ubiquitously in Unix computing (type "man tar" on cobra to
access the online manual). However, we are going to do something
quite simple, just use the tar command to create a tar file. <br>
<br>
Let's say you have a directory called csc335/hw1 on cobra. In
this directory you have a collection of programs you need to turn
in. Change directories to csc335 and type<br>
<br>
tar -cvf hw1.tar hw1<br>
<br>
This will create a file called hw1.tar<br>
<br>
I also prefer that files sent to me via e-mail be compressed. For
that you should use the gzip utility found on almost all unix
systems.<br>
<br>
gzip --best hw1.tar >hw1.tgz<br>
<br>
Or -- to do it all in one line with Unix pipes...<br>
<br>
tar -cvf - hw1 | gzip --best - >hw1.tgz<br>
<br>
To mail the file to me on cobra<br>
<br>
mail -a hw1.tgz pounds<br>
<br>
You will be asked for a subject -- please fill it in. The mail
program will then present you with a blank line<br>
for you to type the body of your e-mail. Fill this in as
appropriate. When you are done composing your message, hit
<CTRL>-D to end the message and mail it.<br>
<br>
<br>
<br>
<br>
On 09/07/13 21:25, wrote:<br>
</div>
<blockquote
cite="mid:C40B2F181831EF44A88CD73525827803026514AB29@MERCERMAIL.MercerU.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper"
style="font-family: Calibri,Arial,Helvetica,sans-serif;
font-size: 12pt; color: #000000; margin: 0">
Hi Dr. Pounds,<br>
<br>
I just tried to create tar files and send you an email in Cobra
but wasn't able to. I followed the instructions you gave us a
few weeks ago that I'd written down in my notes, but perhaps I
wrote them down wrong. Could you email me the commands necessary
to create tar files and email them to you? Also, what exactly
are tar files and what should I make tar files out of? Should I
make one tar file for the source code of each program? Or should
I make one tar file that holds the source codes for both
programs? I don't really know what the purpose of using the tar
file is or how they work exactly.<br>
<br>
Also, would you like me to print my spreadsheet for the
Fibonacci comparisons? Or would you like me to just email it to
you?<br>
<br>
Thanks,<br>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Andrew J. Pounds, Ph.D. (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
</body>
</html>