<?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/14191" />

	<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>2007-10-27T11:43:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-27T11:43:51-04:00</updated>

		<published>2007-10-27T11:43:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77184#p77184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77184#p77184"/>
		<title type="html"><![CDATA[URL logging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77184#p77184"><![CDATA[
Ok, sorry, I didn't look completely your code.<br>Peharps your variable is too big for the system, you can try adding each $uline with a foreach loop.<br>I know this trouble exists with exec command when the string is too long, so try this way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Oct 27, 2007 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pitbull]]></name></author>
		<updated>2007-10-27T08:02:05-04:00</updated>

		<published>2007-10-27T08:02:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77178#p77178</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77178#p77178"/>
		<title type="html"><![CDATA[URL logging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77178#p77178"><![CDATA[
ok let me clear some things up. The code you saw is mine, I added it into a script that grabs the url title of a url posted to a chan. It had url logging capabilities which work fine; however, it outputted the urls to an eggdrop log file. I want the URL's to be visible on a website, so I came up with that code. I want each url posted to be inserted into the top of the file, not appended at the bottom<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9222">pitbull</a> — Sat Oct 27, 2007 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-27T07:30:35-04:00</updated>

		<published>2007-10-27T07:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77177#p77177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77177#p77177"/>
		<title type="html"><![CDATA[URL logging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77177#p77177"><![CDATA[
Why don't you use a regexp to extract the URL?<br><br>And opening twice the same file is quite unoptimised.<br><br>You can open the file in read/write mode and get each line one by one. If the line matches your current URL, exit the loop (and do nothing). When arriving at the end of the file (so, you didn't see the url), just append it to your file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Oct 27, 2007 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-10-27T04:21:20-04:00</updated>

		<published>2007-10-27T04:21:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77174#p77174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77174#p77174"/>
		<title type="html"><![CDATA[URL logging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77174#p77174"><![CDATA[
If you're going to modify other peoples scripts, you best learn how to debug them as well.. Try adding putcmdlog lines in so you can see what's going on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Oct 27, 2007 4:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pitbull]]></name></author>
		<updated>2007-10-26T20:25:01-04:00</updated>

		<published>2007-10-26T20:25:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77168#p77168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77168#p77168"/>
		<title type="html"><![CDATA[URL logging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77168#p77168"><![CDATA[
Hello, I have modified the URL title script to log URL's posted to a chan and output it to a html file. It works sometimes, it will log a few links, but then for some strange reason it will overwrite the whole file with a blank file, and start over.. It usually will log 3-4 urls before restarting.. Here is the part I modified (the rest of the script seems to work well). I each url posted to be inserted into the top of the file<blockquote class="uncited"><div>if {[string match "*://*" $word]} {<br>      set ulf [open /home/peakoil/public_html/urls.html r]<br>      set ulogdata [read -nonewline $ulf]<br>      close $ulf<br>      set ulines [split $ulogdata "\n"]<br>      set ulf [open /home/peakoil/public_html/urls.html w]<br>      set urlline "&lt;a href=\"$word\"&gt;$urtitle&lt;/a&gt;&lt;br&gt;"<br>      set ulines [linsert $ulines 0 $urlline]<br>      puts $ulf [join $ulines "\n"]<br>      close $ulf<br>}</div></blockquote>Thanks for your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9222">pitbull</a> — Fri Oct 26, 2007 8:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
