It is currently Tue, 30 Nov 2021 18:37:18 GMT



 
Author Message
 Tar / (Un) compress Library for Unix
Does anyone know where I can get a commercial library that:

uncompresses files (made using standard unix compress)
untars files

- from a FUNCTION call rather than via a system call

eg a .o or .so function library?

HPUX, linux, solaris and IRIX platforms - in that order of importance.

It would be very nice if the tar command could untar fullpaths to a local
directory, like the IRIX tar -xvfRRR command.

I understand the tar and compress source code is availble, but if there is
something I can buy off the shelf, without having to modify code I would be
interested.(because I don't want to spend my life supporting any tweaks!)

TIA
David James



 Mon, 23 Sep 2002 03:00:00 GMT   
 Tar / (Un) compress Library for Unix
In article <8chvms$pq...@news7.svr.pol.co.uk>,

I know this isn't the answer you really want, but I believe both
libraries exist as perl modules.  And the perl interpreter can be
compiled so that it can be linked in to some C code and run.  So you
could call perl and make it do the work.

And, this may or may not be true, but the implemntations of those perl
modules might be C code anyway, so you might be able to build libraries
out of them with some effort.

  - Logan, who hopes someone else will have a better solution for you



 Mon, 23 Sep 2002 03:00:00 GMT   
 Tar / (Un) compress Library for Unix

Why not just use the popen() function call in your code, you can
call the "zcat" program as a pipline. You could link the output
of "zcat" to "tar" or "pax". Check out "pax" its much more feature
rich than tar. "pax" is avaiable on all sys5 OS, our you can get the
code from www.kornshell.org

Ashish



 Fri, 27 Sep 2002 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. Tar and Un-Tar

2. un-tar src.tar.gz problem

3. ? tar xvf my.tar | compress

4. Problems un-taring a tar file...

5. Problem: un-tar file after FTP - Suggesions Needed

6. Painfully slow un-tar

7. un tarring multiple files

8. Un-tarring


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software