Solved

Archiving System On Unix Using C language

Posted on 2000-04-08
3
179 Views
Last Modified: 2010-04-02
Does anybody know how to create or programme a simple script on UNIX about archiving files using C language. I have this difficulty archiving my files since I am used to WinZip in Windows systems. Somebody please help me !!!
0
Comment
Question by:icekube
  • 3
3 Comments
 
LVL 8

Expert Comment

by:stochastic
ID: 2696094
Unix has several nice utilities for archiving. Try these commands:

compress
pack (obsolote; may not be available on your unix)
tar (archives but does not compress)
cpio (same)

Depending on which Unix version you have, you may even have gzip or zip commands, which are compatible with the zip files created by WinZip.

Finally, full C code is available (freeware) for WinZip compatible zipping. But do you really need it? I can search the URL and let you know later.

- stochastic
0
 
LVL 8

Expert Comment

by:stochastic
ID: 2696097
Forgot to say,
because these readymade commands already exist, it is unlikely that you need to do any programming in C to do archiving.

To see how these commands work, you can see the online manual on unix with commands like:

man compress
man cpio

etc.

hope this helps.

- stochastic
0
 
LVL 8

Accepted Solution

by:
stochastic earned 50 total points
ID: 2696133
Try these URLs for a wealth of info

http://www.gzip.org/
http://artpacks.acid.org/pub/infozip/zlib/

I daresay I have given you plenty of information. Could this qualify for an answer? :0)

Have fun,

- stochastic
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to connect an iphone application to mysql database 10 206
Pointer in one class to member in another 6 121
sameEnds challenge 3 161
A  &&  B  || (C||D) how it works in c 7 56
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question