Solved

Archiving System On Unix Using C language

Posted on 2000-04-08
3
175 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now