Re: Question- Archive::zip/tar
Shishir -- ...and then Shishir K. Singh said... % % David --- % % Could have done that.Only problem with that is % % a) How do I uncompress the *.Z on non Unix(windows) without using gzip % exe (don't want to do that) Not sure. I dunno if the zlib module will speak uncompress or not. If worst comes to worst, you have the code right there in the gzip source code; you could implement your own uncompress, painful though it might be. % b) The files are not to be tampered with as the requirements call for % them to be registered %in a database for reference purpose. Well, that's good, then; you don't have to be writing back to them in compress format :-) All you need is to decompress and go... HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg25520/pgp0.pgp Description: PGP signature
RE: Question- Archive::zip/tar
David --- Could have done that.Only problem with that is a) How do I uncompress the *.Z on non Unix(windows) without using gzip exe (don't want to do that) b) The files are not to be tampered with as the requirements call for them to be registered in a database for reference purpose. -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:31 PM To: perl beginners Cc: Shishir K. Singh Subject: Re: Question- Archive::zip/tar Shishir -- and then Shishir K. Singh said... % % I basically wanted to have the Compression utility independent of any platforms, so that I can do uncompress/Compress on tar /gz files on Windows and Zip files on Unix. Except the *.Z format, the others work fine, thanks to Archive::Zip and Archive::Tar. The compress::Zlib does not support *.Z . After having a look at the source code for gzip, which is in C, found that *.Z(compression) is not supported, although *.Z(uncompression) is supported. I have no clue how to improvise the code to work for the *.Z. The .Z compress format is not only not as efficient as gzip but also, I believe, encumbered by patents. I don't think anyone is bothering with it any more. Is there a particular reason to not recompress your .Z files to smaller gzip-format files whenever you run across one? That way you could improve as you go, although that of course depends on the design requirements and limitations. % % Any gurus out there who can help ?? Good luck! % % Thanks % Shishir HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question- Archive::zip/tar
Shishir -- ...and then Shishir K. Singh said... % % I basically wanted to have the Compression utility independent of any platforms, so that I can do uncompress/Compress on tar /gz files on Windows and Zip files on Unix. Except the *.Z format, the others work fine, thanks to Archive::Zip and Archive::Tar. The compress::Zlib does not support *.Z . After having a look at the source code for gzip, which is in C, found that *.Z(compression) is not supported, although *.Z(uncompression) is supported. I have no clue how to improvise the code to work for the *.Z. The .Z compress format is not only not as efficient as gzip but also, I believe, encumbered by patents. I don't think anyone is bothering with it any more. Is there a particular reason to not recompress your .Z files to smaller gzip-format files whenever you run across one? That way you could improve as you go, although that of course depends on the design requirements and limitations. % % Any gurus out there who can help ?? Good luck! % % Thanks % Shishir HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg25517/pgp0.pgp Description: PGP signature
RE: Question- Archive::zip/tar
Thanks BeauI have been scratching head since morning to see if there is a way out, but to no effect!! I basically wanted to have the Compression utility independent of any platforms, so that I can do uncompress/Compress on tar /gz files on Windows and Zip files on Unix. Except the *.Z format, the others work fine, thanks to Archive::Zip and Archive::Tar. The compress::Zlib does not support *.Z . After having a look at the source code for gzip, which is in C, found that *.Z(compression) is not supported, although *.Z(uncompression) is supported. I have no clue how to improvise the code to work for the *.Z. Any gurus out there who can help ?? Thanks Shishir -Original Message- From: Beau E. Cox [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:16 PM To: Shishir K. Singh; BeginnersPerl (E-mail) Subject: RE: Question- Archive::zip/tar Shishir - I'm using Win32 also (I have Linux on one machine but haven't done much with it yet.) I think that the unix 'tar' utility gives you a .tar file (uncompressed) and then that file is passed thru a compression utility: zip => .tar.z, gzip => .tar.gz, or something like bzip => .tar.bz. Of course, the modern 'tar' program will invoke a compression utility for you via command line switches. Most of the unix tarballs I have seen are in the .tar.gz format. I know this is like the blind leading the blind, but I hope it helps anyway. Aloha => Beau. -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:10 AM To: BeginnersPerl (E-mail) Subject: Question- Archive::zip/tar Hello, I haven't tried it yet and wanted to know if anyone has the clue before I delve deeper into it (just being lazy :)). According to the documentation , the Archive::Tar module supports the *.gz format. I didn't find anything about *.Z (the compress format on UNIX). Does Archive::Tar supports this format but and somehow was skipped in the documentation ? If not, is there a module that does the same for *.Z?? Thanks Shishir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question- Archive::zip/tar
Shishir - I'm using Win32 also (I have Linux on one machine but haven't done much with it yet.) I think that the unix 'tar' utility gives you a .tar file (uncompressed) and then that file is passed thru a compression utility: zip => .tar.z, gzip => .tar.gz, or something like bzip => .tar.bz. Of course, the modern 'tar' program will invoke a compression utility for you via command line switches. Most of the unix tarballs I have seen are in the .tar.gz format. I know this is like the blind leading the blind, but I hope it helps anyway. Aloha => Beau. -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:10 AM To: BeginnersPerl (E-mail) Subject: Question- Archive::zip/tar Hello, I haven't tried it yet and wanted to know if anyone has the clue before I delve deeper into it (just being lazy :)). According to the documentation , the Archive::Tar module supports the *.gz format. I didn't find anything about *.Z (the compress format on UNIX). Does Archive::Tar supports this format but and somehow was skipped in the documentation ? If not, is there a module that does the same for *.Z?? Thanks Shishir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question- Archive::zip/tar
Hello, I haven't tried it yet and wanted to know if anyone has the clue before I delve deeper into it (just being lazy :)). According to the documentation , the Archive::Tar module supports the *.gz format. I didn't find anything about *.Z (the compress format on UNIX). Does Archive::Tar supports this format but and somehow was skipped in the documentation ? If not, is there a module that does the same for *.Z?? Thanks Shishir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]