For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > July 2005 > Re: trouble with Archive::Tar : Can not read compressed format in









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: trouble with Archive::Tar : Can not read compressed format in
benoit Guyon

2005-07-26, 9:02 am

thank you for the response

i used that code to correct my problem :

qx{gunzip $arch_name_tar_z};

and then sent the new file to Archive::Tar (with success)

oddly, the archive must have been compressed with "compress", but gunzip
does the job well

Benoit

Paul Marquess a écrit :
> Archive::Tar can optionally make use of IO::Zlib to access compressed tar
> files that have been compressed with gzip. The problem is your tar file has
> been compressed with something different, namely the Unix compress program.
>
> Try opening Archive::Tar like this
>
> my $arch_name_tar_Z = 'myfile.tar.Z';
> open F, "uncompress -c $arch_name_tar_Z |";
> my $tar = Archive::Tar->new(*F);
>
> Paul
>
> "benoit Guyon" <REMOVEMEbguyon1@gfi.frREMOVEME> wrote in message
> news:dc4tta$u5k$1@news1.completel.net...
>
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com