From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ece2318f24b35a7 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: UNIX Compressed Files From A PC Date: 2000/08/14 Message-ID: <3998091B.FDAE6F34@acm.org>#1/1 X-Deja-AN: 658148355 Content-Transfer-Encoding: 7bit References: <3995C90A.E72C055F@acm.org> <3996B1FC.A5892C21@acm.org> <3996DF0F.B35F1BDC@acm.org> <3996FCBB.3FCAD8F8@netwood.net> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 14 Aug 2000 14:58:39 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-08-14T14:58:39+00:00 List-Id: E. Robert Tisdale wrote: > I suspect that you've been sent on a fool's errand. > The right way to do this is to write a UNIX shell script > which pipes the output from uncompress to a remote process on the NT > which filters the uncompressed data then pipes it back to compress on UNIX. > I think you could do the whole thing with a single UNIX command > on two or three lines in the shell script. > Anyway, it's just the sort of assignment that an old UNIX programmer > with a sick sense of humor would give to a cocky young Windows programmer > to teach him a little something about UNIX and, of course, humility;-) I wish I were young - and a Windows programmer :-) Humility is not my strong suit. It's hard to be humble when you're the best there is. As I've said in a number of other posts: I cannot change the requirement. The file *MAY-OR-MAY-NOT* live on a Unix box. Relying on Unix to uncompress the file is NOT an option. The only thing I can count on is that at some point in time, the file was compressed using the Unix "compress" command (LZW algorithm, ".z" file format, whatever that implies.) I cannot change the compression algorithm. I cannot rely on the Unix operating system. I cannot use shell scripts or some other stuff to unpack the file. I've got to *READ* the file in its compressed format and get it decompressed on the fly. This is not, in principle, a difficult thing to do - nor an uncommon thing to do. Look at the Win32.LZExpand stuff provided by the Win32ada/Win32api. Thats all I need. Just that - only for ".z" files instead of Windows compressed files. As I understand it, Unix will just do this for you automagically, when you open and start reading the file. My only problem is an unsupported file format on Windoze. Why does it seem that what I want to do is so unusual or oddball? MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Take away the punchbowl just when the party gets going" -- William McChesney Martin, Former Fed chairman, explaining what a sound central bank must always do. ======================================================================