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

	<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>2014-07-29T12:40:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-07-29T12:40:59-04:00</updated>

		<published>2014-07-29T12:40:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103091#p103091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103091#p103091"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103091#p103091"><![CDATA[
Actually, this does trigger on Sundays at 0:00 hour. To be more specific, it would be at midnight when Saturday turns to Sunday.<br><br>To have it trigger on the start of the new week, you'd need to match against Monday:<div class="codebox"><p>Code: </p><pre><code>bind cron - "0 0 * * 1" a_test_proc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 29, 2014 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-29T10:04:34-04:00</updated>

		<published>2014-07-29T10:04:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103086#p103086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103086#p103086"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103086#p103086"><![CDATA[
<blockquote class="uncited"><div>G'evening Gents,<br>You will not be able to create a mask that will trigger on "sundays", mainly because there's no weekday-field in the mask. The "day" part refers to the day of month.<br><br>If you'd like the binding to trigger on a specific date, then that is obviously possible, however...<br>As mentioned throughout the thread, single-digit values must be prefixed by 0, month starts at 0, day of month starts at 1.<br><br>To trigger on every sunday however, you'll need to use the cron binding instead:<div class="codebox"><p>Code: </p><pre><code>bind cron - "0 0 * * 0" a_test_proc#Triggers at 0:00 every sunday</code></pre></div></div></blockquote>hi guys did some testing and the bind cron actioned the proc but on saturday and not sunday at midnight am i missing something ??<br><br>so would this work instead ?<br><div class="codebox"><p>Code: </p><pre><code>bind cron - "0 0 * * 7" a_test_proc </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Tue Jul 29, 2014 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-25T13:36:23-04:00</updated>

		<published>2014-07-25T13:36:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103048#p103048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103048#p103048"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103048#p103048"><![CDATA[
ok will do<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Fri Jul 25, 2014 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-25T13:25:26-04:00</updated>

		<published>2014-07-25T13:25:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103047#p103047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103047#p103047"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103047#p103047"><![CDATA[
<blockquote class="uncited"><div>...<br>i presume its because i use 1.6.19<br><br>Is there no other way round it or should i upgrade ?</div></blockquote><br>See:<br><a href="http://eggwiki.org/1.6.20#Bind_types_added" class="postlink">http://eggwiki.org/1.6.20#Bind_types_added</a><br><br>I use 1.6.21 , and recommend that you upgrade to it.   <br><br>I don't know if there is any other way around it.  That's a question for nml375, but I expect that he will recommend that you upgrade, too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jul 25, 2014 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-07-25T13:26:27-04:00</updated>

		<published>2014-07-25T13:17:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103046#p103046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103046#p103046"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103046#p103046"><![CDATA[
Which version of eggdrop are you using?<br><br>Might add, that the cron binding is only available in 1.6.20 onwards..<br>If you've got an older eggdrop, you could use something along these lines as a workaround:<div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 *" someprocproc someproc {min hour day month year} {  if {[clock format [clock seconds] -format "%u"] == 7} {    #Today is sunday, so do something here...  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Jul 25, 2014 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-25T13:17:45-04:00</updated>

		<published>2014-07-25T12:57:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103045#p103045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103045#p103045"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103045#p103045"><![CDATA[
Thanks guys will test the bind cron and report back.<br><br>ok i get this error<br><br><div class="codebox"><p>Code: </p><pre><code>bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, filt, flud, join, kick, link, load, mode, msg, msgm, need, nick, nkch, notc, note, part, pub, pubm, raw, rejn, sign, splt, time, topc, unld, wall</code></pre></div>i presume its because i use 1.6.19<br><br>Is there no other way round it or should i upgrade ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Fri Jul 25, 2014 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-24T14:15:25-04:00</updated>

		<published>2014-07-24T14:15:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103035#p103035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103035#p103035"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103035#p103035"><![CDATA[
<blockquote class="uncited"><div>...<br><br>To trigger on every sunday however, you'll need to use the cron binding instead:</div></blockquote>That's why I said:<blockquote class="uncited"><div>While you are there, you might like to find<br>bind cron<br>and read about it too.<br>I'm not sure what you are really trying to do, but it is possible that<br>bind cron<br>might suit your needs better. </div></blockquote>in my first response to him.  Since he didn't comment on it, or even acknowledge it, I dropped back to simply trying to answer what he specifically asked.<br>I'm glad you took the time to bring it up, again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 24, 2014 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-07-24T13:48:03-04:00</updated>

		<published>2014-07-24T13:48:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103034#p103034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103034#p103034"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103034#p103034"><![CDATA[
G'evening Gents,<br>You will not be able to create a mask that will trigger on "sundays", mainly because there's no weekday-field in the mask. The "day" part refers to the day of month.<br><br>If you'd like the binding to trigger on a specific date, then that is obviously possible, however...<br>As mentioned throughout the thread, single-digit values must be prefixed by 0, month starts at 0, day of month starts at 1.<br><br>To trigger on every sunday however, you'll need to use the cron binding instead:<div class="codebox"><p>Code: </p><pre><code>bind cron - "0 0 * * 0" a_test_proc#Triggers at 0:00 every sunday</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jul 24, 2014 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-24T13:15:48-04:00</updated>

		<published>2014-07-24T13:15:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103032#p103032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103032#p103032"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103032#p103032"><![CDATA[
I tried it too, it didn't work for me either.      <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>With a few minutes experimenting, I found it.<br><br>This works:<br>bind time -|- "* 17 24 06 2014" a_test_proc<br><br>running that proc once every minute.   That's as far as I tested it.<br><br>The trick:  see that 06 in there?<br>I found that by intuitively trying it.    <br>Afterwards, I found:<br><a href="http://forum.egghelp.org/viewtopic.php?p=72492#72492" class="postlink">http://forum.egghelp.org/viewtopic.php?p=72492#72492</a><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 24, 2014 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-24T12:27:07-04:00</updated>

		<published>2014-07-24T12:27:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103031#p103031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103031#p103031"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103031#p103031"><![CDATA[
now i look at it tht makes sense will try it and report back many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Thu Jul 24, 2014 12:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-24T12:17:22-04:00</updated>

		<published>2014-07-24T12:17:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103030#p103030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103030#p103030"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103030#p103030"><![CDATA[
To me, when I read this:<blockquote class="uncited"><div>minute, hour, day, month have a zero padding so they are exactly two characters long;</div></blockquote>it means this:<div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 24 07 *" week:ended</code></pre></div>Perhaps I'm understanding the doc incorrectly.   How do you interpret it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 24, 2014 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-24T11:55:16-04:00</updated>

		<published>2014-07-24T11:55:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103029#p103029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103029#p103029"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103029#p103029"><![CDATA[
Thx for the reply been on this for a while now with no success ive read the links but no joy ive even setup a test but it doesnt work<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 24 7 *" week:endedproc week:ended { minute hour day month year } {  putlog "END OF WEEK"}</code></pre></div>ive tried several different ways any help would be greatfully apprecaited<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Thu Jul 24, 2014 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-08T14:35:21-04:00</updated>

		<published>2014-07-08T14:35:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102977#p102977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102977#p102977"/>
		<title type="html"><![CDATA[Re: Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102977#p102977"><![CDATA[
See:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and find:<br>bind time<br><br>It says:<blockquote class="uncited"><div>mask matches 5 space separated integers of the form: "minute hour day month year". minute, hour, day, month have a zero padding so they are exactly two characters long; year is four characters.</div></blockquote>Could that be the problem?<br><br>While you are there, you might like to find<br>bind cron<br>and read about it too.<br>I'm not sure what you are really trying to  do, but it is possible that <br>bind cron<br>might suit your needs better.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Jul 08, 2014 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[COBRa]]></name></author>
		<updated>2014-07-08T13:26:49-04:00</updated>

		<published>2014-07-08T13:26:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102976#p102976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102976#p102976"/>
		<title type="html"><![CDATA[Running a proc using bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102976#p102976"><![CDATA[
Im trying to run a proc using bind time im trying to get it to run at midnight on sunday but the code doesnt work.<br><br>Here's what i have so far<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 24 7 *" procname</code></pre></div>am i anywhere near getting it right plz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12170">COBRa</a> — Tue Jul 08, 2014 1:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
