Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Archiving System On Unix Using C language

Posted on 2000-04-08
3
Medium Priority
?
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

610 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