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

	<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-12-08T15:46:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-08T15:46:26-04:00</updated>

		<published>2003-12-08T15:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31200#p31200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31200#p31200"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31200#p31200"><![CDATA[
1st code is not correct, it doesn't work like that.<br>but the second code is correct, it will trigger <strong class="text-strong">myProc</strong> every 5 mins.<br><br>read tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 08, 2003 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LtPhil]]></name></author>
		<updated>2003-12-08T15:24:07-04:00</updated>

		<published>2003-12-08T15:24:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31199#p31199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31199#p31199"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31199#p31199"><![CDATA[
i actually have a related question...<br><br>i'd like to use a <strong class="text-strong">bind time</strong> to trigger something to run every five minutes (i want to make sure it executes at :00 :05 :10, etc)... how do i do this?  can you comma-separate multiple values like you can with crontab, or do i have to set up two binds?<br><br>crontab-style:<div class="codebox"><p>Code: </p><pre><code>bind time - "?0,?5 *" myProc</code></pre></div>two timers:<div class="codebox"><p>Code: </p><pre><code>bind time - "?0 *" myProcbind time - "?5 *" myProc</code></pre></div>thanks, as always, for any help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3577">LtPhil</a> — Mon Dec 08, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-03T09:09:53-04:00</updated>

		<published>2003-12-03T09:09:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31023#p31023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31023#p31023"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31023#p31023"><![CDATA[
<blockquote class="uncited"><div>/me's just trying to pick a fight as always <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>ok, lets take this one outside <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> *maybe closed*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Wed Dec 03, 2003 9:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T20:42:16-04:00</updated>

		<published>2003-12-02T20:42:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31009#p31009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31009#p31009"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31009#p31009"><![CDATA[
If you want an interval that large, it's usually a number of hours/days. (change the bind/calculation) His request was for 90 minutes though.<br>I like the idea of just having to unbind to stop it and the fact that it's running "in sync" with the time. (so you can predict when the proc will run your code without having to know when the script was started/start it at a particular time.)<br><br>He might not want that though <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>On the downside, the code matching the masks for a time bind doesn't handle timer drifts very well (iirc), so you might get a few skipped runs if the box you're running it on is REALLY busy around the time your bind mask matches.<br><br>/me's just trying to pick a fight as always <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-02T19:20:25-04:00</updated>

		<published>2003-12-02T19:20:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31006#p31006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31006#p31006"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31006#p31006"><![CDATA[
<blockquote class="uncited"><div>The code doing the check for an existing timer is much more cpu intensive than my time calculation</div></blockquote>the call for [timers] is only triggered when the actual proc is hit, it's used to avoid double timers when doing a rehash / whatever.<br><br>if the intervall would be 10000000 (or something large) your code would check a few hundret times it the exact has been reached (either that or i'm too drunk to understand the code again).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Dec 02, 2003 7:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T14:46:34-04:00</updated>

		<published>2003-12-02T14:46:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30993#p30993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30993#p30993"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30993#p30993"><![CDATA[
<blockquote class="uncited"><div>user: i think the direct timer works a little better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>In what way? The code doing the check for an existing timer is much more cpu intensive than my time calculation and the eggdrop code dealing with timers / bind time is pretty much the same (iirc)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-02T10:36:53-04:00</updated>

		<published>2003-12-02T10:36:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30984#p30984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30984#p30984"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30984#p30984"><![CDATA[
user: i think the direct timer works a little better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Dec 02, 2003 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-02T09:33:40-04:00</updated>

		<published>2003-12-02T09:33:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30977#p30977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30977#p30977"/>
		<title type="html"><![CDATA[Workaround for the &quot;limits&quot; to bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30977#p30977"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># interval in minutes# (you could of course hard code the interval value into the# proc if you don't need it to be easy to spot and change :)set interval 90# this bind will trigger the proc every ten minutes# (whenever the last digit of the minutes is "0")bind time - ?0* timedThingproc timedThing args {# this calculation makes sure the code is only executed# at the given intervalif {![expr {([clock sec]/60)%$::interval}]} {# insert your code here}}</code></pre></div>PS: since the proc is only triggered every ten minutes, make sure your interval value matches that (ends with a 0). If you need a finer "resolution", change the bind. (* as a mask for every minute)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 02, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-01T16:06:58-04:00</updated>

		<published>2003-12-01T16:06:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30944#p30944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30944#p30944"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30944#p30944"><![CDATA[
yeah, got that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Thanx for the info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 01, 2003 4:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-12-01T13:53:27-04:00</updated>

		<published>2003-12-01T13:53:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30941#p30941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30941#p30941"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30941#p30941"><![CDATA[
edit: sorry... guess i'm too ill to think today.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Mon Dec 01, 2003 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-01T12:59:32-04:00</updated>

		<published>2003-12-01T12:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30940#p30940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30940#p30940"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30940#p30940"><![CDATA[
<blockquote class="uncited"><div>If I understand well, what you mean is that there can't be 90 mins in a clock (since 1 hour = 60mins) well if that's how bind time functions </div></blockquote>bind time is for exact values.<br><br>bind time 00 ** ** ** ** (or even 00 *) would trigger every full hour (00:00, 01:00, 02:00, etc)<br>bind time ?0 ** ** ** ** (or even ?0 *) would trigger all 10 minutes (00:00, 00:10, 00:20, etc)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Dec 01, 2003 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-30T18:42:36-04:00</updated>

		<published>2003-11-30T18:42:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30915#p30915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30915#p30915"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30915#p30915"><![CDATA[
<blockquote class="uncited"><div>[snip]<br>bind time works with &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt; <br>your bind would trigger every hour that has the minute value of 90...this aint gonna happen i'd say.<br>[snip]</div></blockquote>If I understand well, what you mean is that there can't be 90 mins in a clock (since 1 hour = 60mins) well if that's how bind time functions (because I don't exactly know how bind time functions) then my bind is wrong, else its correct.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 30, 2003 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-11-30T18:05:16-04:00</updated>

		<published>2003-11-30T18:05:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30914#p30914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30914#p30914"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30914#p30914"><![CDATA[
<blockquote class="uncited"><div>this will trigger proc every 90 minutes.</div></blockquote>are you sure ? either i'm drunk or this proc will never be triggerd.<br><br>bind time works with &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<br>your bind would trigger every hour that has the minute value of 90...this aint gonna happen i'd say.<br><div class="codebox"><p>Code: </p><pre><code>proc someproc {args} {        foreach i [timers] {         if {[lindex $i 1] == "someproc"} {             killtimer [lindex $i 2]         }        }       putlog "TRIGGERD ALL 90 MINS"       timer 90 someproc}timer 90 someproc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sun Nov 30, 2003 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jag]]></name></author>
		<updated>2003-11-30T15:30:15-04:00</updated>

		<published>2003-11-30T15:30:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30903#p30903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30903#p30903"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30903#p30903"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3871">Jag</a> — Sun Nov 30, 2003 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-30T14:40:43-04:00</updated>

		<published>2003-11-30T14:40:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30899#p30899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30899#p30899"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30899#p30899"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "90 *" proc</code></pre></div>this will trigger proc every 90 minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 30, 2003 2:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
