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

	<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>2010-01-05T15:55:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2010-01-05T15:55:43-04:00</updated>

		<published>2010-01-05T15:55:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91591#p91591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91591#p91591"/>
		<title type="html"><![CDATA[bind time ,  with multiple values]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91591#p91591"><![CDATA[
The following code executes at minute 00 for every 'ODD' hour by testing if the number of hours has a remainder after dividing by 2 (hour mod 2). The result can only be 1 (true) or 0 (false)<br><div class="codebox"><p>Code: </p><pre><code>bind TIME - "00 * * * *" pTimeProcproc pTimeProc {minute hour day month year} {  if {$hour % 2} {    # code here  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jan 05, 2010 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-01-05T14:18:02-04:00</updated>

		<published>2010-01-05T14:18:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91586#p91586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91586#p91586"/>
		<title type="html"><![CDATA[bind time ,  with multiple values]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91586#p91586"><![CDATA[
<blockquote class="uncited"><div>The time binding simply does a glob-style matching of a fixed string being 'minute hour day-of-month month year' (of the curent time) against the mask provided in the binding. As such, you cannot use the more advanced syntax of crontab's.</div></blockquote>Thanks.<br><br>Another idea came to mind.<br>What would happen if I simply created more binds?<br>as in:<br>bind time - "0 01 * * *" do_announce <br>bind time - "0 03 * * *" do_announce <br>bind time - "0 05 * * *" do_announce <br>.<br>.<br>.<br>and so on.<br><br><br>Would that do it?<br>Would the do_annouce procedure run at 1:00am, 3:00am, 5:00am, and so on?<br><br><blockquote class="uncited"><div>You could, however, do additional checks on the hour within the triggered code. Ie: for every n:th hour, use the modulus function or so..</div></blockquote>I don't get it, yet.<br>Can you elaborate a bit?<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Jan 05, 2010 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-01T15:41:52-04:00</updated>

		<published>2010-01-01T15:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91510#p91510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91510#p91510"/>
		<title type="html"><![CDATA[bind time ,  with multiple values]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91510#p91510"><![CDATA[
The time binding simply does a glob-style matching of a fixed string being 'minute hour day-of-month month year' (of the curent time) against the mask provided in the binding. As such, you cannot use the more advanced syntax of crontab's.<br><br>You could, however, do additional checks on the hour within the triggered code. Ie: for every n:th hour, use the modulus function or so..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Jan 01, 2010 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-01-01T15:00:04-04:00</updated>

		<published>2010-01-01T15:00:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91507#p91507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91507#p91507"/>
		<title type="html"><![CDATA[bind time ,  with multiple values]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91507#p91507"><![CDATA[
Hello,<br><br>Does bind time accept values the same way as crontab does?<br><br><br>Here's what I'm doing:<br>I have a small script I drew up,  and it uses :<br>    bind time - "01 * * * *" do_announce<br>just fine.     The procedure does an announcement in a channel, once per hour.<br><br>I'd like to experiment with making that once every other hour.<br>And other variations too.<br>Perhaps once every 3 or 4 hours.<br>Whatever... until I get it like I like it.<br><br>And I wondered if I could use entries like I found here:<br><a href="http://ss64.com/bash/crontab.html" class="postlink">http://ss64.com/bash/crontab.html</a><br>Would it be?:<br>bind time - "* 01,03,05,07,09,11,13,15,17,19,21,23 * * *" do_announce<br><br>If not, ...if bind time  does not accept that,  how would I go about it?<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jan 01, 2010 3:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
