Re: compression/seek/tell

2002-09-23 Thread david
Robert Citek wrote: > > Hello all, > > Questions: > How can I tell if a file is compressed (gzip or compress)? > Can I use seek/tell on a pipe or fifo? > If not, are there work-arounds? > here is a OS-independent way to check if a file is gzip or not: #!/usr/bin/perl -w use strict; if(is_zi

Re: compression/seek/tell

2002-09-22 Thread Jeff 'japhy' Pinyan
On Sep 22, Robert Citek said: >How can I tell if a file is compressed (gzip or compress)? I believe the File::MMagic will do what you need. >Can I use seek/tell on a pipe or fifo? Doesn't look that way. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acaci