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

	<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>2003-09-23T04:27:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-09-23T04:27:48-04:00</updated>

		<published>2003-09-23T04:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27458#p27458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27458#p27458"/>
		<title type="html"><![CDATA[Looping timer that halts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27458#p27458"><![CDATA[
I've got a script that communicates with a vBB (virtual bulletin board) PHP forum.<br>When a scripted event occurs in the PHPscript, it stores a string to a file which the TCl checks every couple of seconds for new info.<br>The script works fine and dandy, but it seems like the timer halts sometimes.. It does not produce any errormessages, which I'm aware off. This can occur on totally random times, and I've been twisting my brain with this one, not being able to locate the problem.<br><br>The relevant code is here;<br><div class="codebox"><p>Code: </p><pre><code>if {![info exists mytimer]} {        set mytimer [utimer 5 checksize]}proc checksize { } {global logsize vbblogfile        set newsize [file size $vbblogfile]        if { $newsize == 0 } {                vbbtimer                return 0        }        if { [file size $vbblogfile] == $logsize } {                vbbtimer                return 0        } else {                set threadinfo [exec tail -n1 $vbblogfile][...]                putquick "privmsg $reportchan : "                putserv "privmsg $reportchan :$threadinfo"                set logsize $newsize                vbbtimer                return 0        }}proc vbbtimer { } {        utimer 5 checksize}</code></pre></div>Any bright ideas on what may be wrong ?<br><br>- nso<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3074">nso</a> — Tue Sep 23, 2003 4:27 am</p><hr />
]]></content>
	</entry>
	</feed>
