?
Solved

Archiving System On Unix Using C language

Posted on 2000-04-08
3
Medium Priority
?
195 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures 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.
Suggested Courses

771 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