<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/8904" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-12-31T15:43:01-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/8904</id>

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-31T15:43:01-04:00</updated>

		<published>2004-12-31T15:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44774#p44774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44774#p44774"/>
		<title type="html"><![CDATA[Help with script to parse a text-file compressed with gz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44774#p44774"><![CDATA[
you need the <a href="http://mkextensions.sourceforge.net/mkZiplib10.htm" class="postlink">mkZiplib</a> extension, which will allow you to decompress your data on-the-fly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 31, 2004 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-12-31T15:24:50-04:00</updated>

		<published>2004-12-31T15:24:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44772#p44772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44772#p44772"/>
		<title type="html"><![CDATA[Help with script to parse a text-file compressed with gz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44772#p44772"><![CDATA[
What are you trying to do? You first must download the file, unpack then view it. This should save the file:<div class="codebox"><p>Code: </p><pre><code>package require httpset f [open "some.file.tgz" w]::http::geturl "http://somepage/some.file.tgz" -channel $fclose $f</code></pre></div>if that's what you are looking for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 31, 2004 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FAIN]]></name></author>
		<updated>2004-12-31T11:19:30-04:00</updated>

		<published>2004-12-31T11:19:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44769#p44769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44769#p44769"/>
		<title type="html"><![CDATA[Help with script to parse a text-file compressed with gz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44769#p44769"><![CDATA[
I'm trying to write a script for my eggdrop bot to parse a textfile that is compressed with gzip but can't get it to work. <br><br>I'm currently using the http package with the following code:<br><div class="codebox"><p>Code: </p><pre><code>set page [::http::geturl ${temp_URL}]set lines [split [::http::data ${page}] \n]set numLines [llength ${lines}]</code></pre></div>Then I just parse it a line by a line with a for loop but the problem is that I just get junk from it since it's compressed. I've looked at the compress module some but not quite sure how to use it in this case.<br><br>Any help would be appreciated!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3739">FAIN</a> — Fri Dec 31, 2004 11:19 am</p><hr />
]]></content>
	</entry>
	</feed>
