From: Michael Campbell Date: 2003-05-16T23:17:57+09:00 Subject: Re: gzip cgi compression > Ah, that's not something I use. But I can trade you a working CGI: > > #!/usr/local/bin/ruby -w > data = IO.popen("cat /etc/motd | gzip -c","r").read > puts "Content-Type: text/plain" > puts "Content-Encoding: gzip" > puts > print data Is "cat" necessary there, or am I missing something? Would: data = IO.popen("gzip -c /etc/motd", "r").read not work? __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com