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

	<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>2006-04-27T00:12:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-27T00:12:50-04:00</updated>

		<published>2006-04-27T00:12:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62402#p62402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62402#p62402"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62402#p62402"><![CDATA[
you close the file only conditionally, which is a no-no<br><br>as result, your script keeps opening the file without closing it, thus exhausting the limit of open file handles you are allowed on that system<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Apr 27, 2006 12:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[webstar]]></name></author>
		<updated>2006-04-27T00:02:27-04:00</updated>

		<published>2006-04-27T00:02:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62401#p62401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62401#p62401"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62401#p62401"><![CDATA[
anyone?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4671">webstar</a> — Thu Apr 27, 2006 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[webstar]]></name></author>
		<updated>2006-04-20T00:41:57-04:00</updated>

		<published>2006-04-20T00:41:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62131#p62131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62131#p62131"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62131#p62131"><![CDATA[
Ok i'll first admit this script was wrote for me, i've edited it a bit but I don't know how to edit it to close the file each time.<br><br>FYI<br>[10:47:30pm] &lt;AlertBot-&gt; [22:43] Tcl error in script for 'timer1025':<br>[10:47:30pm] &lt;AlertBot-&gt; [22:43] couldn't open "tstormdata.txt": too many open files<br>[11:03:57pm] &lt;AlertBot-&gt; [23:00] ERROR writing user file.<br>[12:04:20am] &lt;AlertBot-&gt; [00:00] --- Thu Apr 20 2006<br><br>Is the error I get<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4671">webstar</a> — Thu Apr 20, 2006 12:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-04-19T03:47:28-04:00</updated>

		<published>2006-04-19T03:47:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62091#p62091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62091#p62091"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62091#p62091"><![CDATA[
First off, you only close the file when it was changed.<br>You should close it no matter what.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Apr 19, 2006 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[webstar]]></name></author>
		<updated>2006-04-19T01:46:21-04:00</updated>

		<published>2006-04-19T01:46:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62089#p62089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62089#p62089"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62089#p62089"><![CDATA[
Ok this is my script, it currently watches a file for changes and then if there is a change it pubishes the file to the channel Right now it's giving errors too many files open plus is there a way for it reuses the same timer rather then a new one everytime. <br>thanks for any help you can provide.<div class="codebox"><p>Code: </p><pre><code>############################# #  This is the postONE channel ############################# set postONE(chan) "#weatheralerts" ############################# # This is the filename############################# set postONE(filename) "tstormdata.txt" ############################# #  Time between checks in seconds############################# set postONE(time) 30############################# #  Code begin ############################# set postONE(check) 1set postONE(modtime) [file mtime $postONE(filename)]set double-help 1proc postONE_start {} {    global postONE    set postONE(check) 1   postONE_check} proc postONE_check {} {   global postONE    if { $postONE(check) == 0 } { return }   set modtime [file mtime $postONE(filename)]   set thefile [open $postONE(filename)]   if { $modtime != $postONE(modtime) } {      while { [gets $thefile theline] != -1 } {       puthelp "PRIVMSG $postONE(chan) :$theline "     }     set postONE(modtime) $modtime     close $thefile   }   utimer $postONE(time) postONE_start}proc postONE_stop {} {   global postONE   set postONE(check) 0}postONE_start</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4671">webstar</a> — Wed Apr 19, 2006 1:46 am</p><hr />
]]></content>
	</entry>
	</feed>
