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

	<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>2009-03-20T22:32:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-20T22:32:28-04:00</updated>

		<published>2009-03-20T22:32:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87991#p87991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87991#p87991"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87991#p87991"><![CDATA[
Best advice I can give you right now, is to remove all scripts, and then load them one at a time until the issue returns. That, atleast, should tell you which script is at fault.<br><br>Next step would then be to add some <strong class="text-strong">putlog</strong>'s whenever you open or close a file in a script, to keep track of which files are left opened, and where..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 20, 2009 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2009-03-20T18:59:48-04:00</updated>

		<published>2009-03-20T18:59:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87989#p87989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87989#p87989"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87989#p87989"><![CDATA[
There is more than one process opening and supposedly closing files but it doesnt appear to do so I have made sure that all the processes call the files by different names so as not to get them confused in any way but nothing I do seems to fix this problem<br>I have tried just the one process so as to be sure and still I end up with this problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Fri Mar 20, 2009 6:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-20T18:44:16-04:00</updated>

		<published>2009-03-20T18:44:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87988#p87988</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87988#p87988"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87988#p87988"><![CDATA[
Indeed!<br><br>What strikes me, however, is that the number of opened files increases by more than 2 for each invocation.. And especially that the number of opened files increases in a non-linear way.<br><br>Since you only open the file twice, this suggests that there is some other script in play here that does not clean up file handles properly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 20, 2009 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2009-03-20T18:07:59-04:00</updated>

		<published>2009-03-20T18:07:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87987#p87987</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87987#p87987"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87987#p87987"><![CDATA[
Ok heres what happened in a few minutes<br>Files opened: stdin stdout stderr<br>Files opened: file17 stdin file18 stdout file20 file19 stderr file16<br><br>Files opened: file22 file17 stdin file18 stdout file20 file19 stderr file21 file16<br><br>Files opened: stdin file17 stdout file18 stderr file19 file20 file21 file22 file23 file24 file25 file26 file27 file28 file30 file29 file16<br><br>Files opened: file35 stdin file17 stdout file18 stderr file19 file20 file21 file22 file23 file24 file25 file26 file27 file28 file30 file29 file31 file32 file33 file34 file16<br><br>You can see how this will quicly become a problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Fri Mar 20, 2009 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-20T17:46:28-04:00</updated>

		<published>2009-03-20T17:46:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87986#p87986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87986#p87986"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87986#p87986"><![CDATA[
That code looks perfectly fine, I see one { missing in the beginning, but I guess that's just the proc-head.<br><br>Could you add something like this at the end of the proc?<div class="codebox"><p>Code: </p><pre><code>putlog "Files opened: [file channels]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 20, 2009 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2009-03-20T14:58:35-04:00</updated>

		<published>2009-03-20T14:58:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87982#p87982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87982#p87982"/>
		<title type="html"><![CDATA[files not closing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87982#p87982"><![CDATA[
Having problems with my eggdrops not closing files to the point that they end up reaching the maximum allowed currently set at 1024 <br><br>using pretty much this code <br><br>set found 0 <br>set fs [open $db r] <br>while {![eof $fs]} { <br>gets $fs line <br>if {$line == $word} { <br>set found 1 <br>} <br>} <br>close $fs <br><br>if {!$found} { <br>set wfile [open $db a]<br>puts $wfile $word<br>close $wfile<br>putquick "PRIVMSG .....<br><br>}<br><br>Did I do something wrong ? Or should I just find another way?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Fri Mar 20, 2009 2:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
