Re: Opening Cisco Doc CD files from Linux (Was Windows Explorer)

From: Jay Hennigan (jay@xxxxxxxx)
Date: Sun Aug 05 2001 - 01:20:45 GMT-3


   
On Sat, 4 Aug 2001, W. Alan Robertson wrote:

> It is my understanding that because of the Volume of data contained on
> the CD, for the past 2 or 3 years, the data has been compressed (And
> is uncompressed via the Verity engine). In the "old days," you could
> view the contents in other than the proscribed manner. That is no
> longer the case, much to the consternation of Linux users like myself.
>
> Speaking of Linux and the Doc CD, a couple months ago, somebody was
> looking for a Perl script that would allow the CD to be viewed under
> Linux. This was the first time I'd heard of such an animal. Has
> anyone on the list ever stumbled across this? If so, could you direct
> me to it?

Buried in my archive of old but possibly useful information, from 1999.

Not sure if it's still valid or if the author is still at that address.

  8<-----Cut here -----8<-------

edit your Apache configuration file srm.conf and add the following 3 lines:
# enable auto-decompression of Cisco CD-ROM gzipped .htm files
AddType text/gzipped .htm
Action text/gzipped /cgi-bin/showcisco

The script at /home/httpd/cgi-bin/showcisco is:

#!/usr/bin/perl
$zippedhtmfile = $ENV{'DOCUMENT_ROOT'} . $ENV{'PATH_INFO'} ||
 die "No path info\n";
-s $zippedhtmfile || die "No such file $zippedhtmfile\n";
chop($filetype = `file $zippedhtmfile`);
$| = 1; # make sure the header gets output first!
print "Content-type: text/html\r\n\r\n";
if ($filetype =~ /gzip/) {
 system "zcat $zippedhtmfile";
} else { system "cat $zippedhtmfile";
}

Then you simply make a link under your home directory:

ln -s /mnt/cdrom /home/httpd/html/cisco

And browse to http://localhost/cisco/home/home.htm

--
jcomeau@world.std.com aka John Otis Lene Comeau

-- Jay Hennigan - CCIE #7880 - Network Administration - jay@west.net NetLojix Communications, Inc. - http://www.netlojix.com/ WestNet: Connecting you to the planet. 805 884-6323 **Please read:http://www.groupstudy.com/list/posting.html



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:31:45 GMT-3