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

	<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-09-05T03:25:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-05T03:25:20-04:00</updated>

		<published>2009-09-05T03:25:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90164#p90164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90164#p90164"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90164#p90164"><![CDATA[
ahhhh, right, didn't even think about that!! lol.... thanks a lot for the reply. that will do it...<br><br>@ arfer:<br>Yeap, I agree that such script would give me a lot of unnecessary work.<br><br>Once again, thanks for your help.<br><br>See you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Sat Sep 05, 2009 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-09-04T17:07:04-04:00</updated>

		<published>2009-09-04T17:07:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90162#p90162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90162#p90162"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90162#p90162"><![CDATA[
<blockquote class="uncited"><div>Hi arfer,<br><br>Thanks for your reply - that was a good idea. I chose to make it like this:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 28 * *" clear_records</code></pre></div>That way it will run <strong class="text-strong">almost</strong> in the end of the month, except for february, which will run exactly in the end of the month. So my issue should be solved by now.<br><br>Aditionally, I'd like to know if there is really anyway to make our eggies know when a month finished, even if it's a month with 30 or 31, or if it's February. Just for curiosity ... my script doesn't need to run exactly in the end of every month, but now I'm curious about it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Once again, thanks for the fast and great reply.<br><br>See you arround,<br>Fill</div></blockquote>Why do you test for the end of the month before it has occured?<div class="codebox"><p>Code: </p><pre><code>bind time "00 00 01 * *" clear_records</code></pre></div>You only really need to know at exactly which point when the old month has expired. The easiest way to do this is simply check against first day of every new month at exactly midnight. You bind to this event instead and it's easier and more accurate.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Sep 04, 2009 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-09-04T16:42:25-04:00</updated>

		<published>2009-09-04T16:42:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90161#p90161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90161#p90161"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90161#p90161"><![CDATA[
It would be possible to write a Tcl script that runs recursively to test how close to the end of a particular month it is, using [unixtime] or [clock seconds] to get the local time and some form of [clock format] to derive the day and time of the month. Then trigger some action if it is within a preset timeframe prior to month end. Frankly, I think it would be a major waste of time and resource.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Sep 04, 2009 4:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-04T10:49:16-04:00</updated>

		<published>2009-09-04T10:49:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90158#p90158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90158#p90158"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90158#p90158"><![CDATA[
Hi arfer,<br><br>Thanks for your reply - that was a good idea. I chose to make it like this:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 28 * *" clear_records</code></pre></div>That way it will run <strong class="text-strong">almost</strong> in the end of the month, except for february, which will run exactly in the end of the month. So my issue should be solved by now.<br><br>Aditionally, I'd like to know if there is really anyway to make our eggies know when a month finished, even if it's a month with 30 or 31, or if it's February. Just for curiosity ... my script doesn't need to run exactly in the end of every month, but now I'm curious about it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Once again, thanks for the fast and great reply.<br><br>See you arround,<br>Fill<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Fri Sep 04, 2009 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-09-04T06:00:30-04:00</updated>

		<published>2009-09-04T06:00:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90154#p90154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90154#p90154"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90154#p90154"><![CDATA[
I am also interested in a competent reply to this question. Time masks seem to be something of an artform.<br><br>First off, in an earlier thread just a few days ago we have established that a very simple mask would yield every minute. As follows :-<br><div class="codebox"><p>Code: </p><pre><code>bind TIME - * procname</code></pre></div>The way I would tackle the problem of once per month is to specify the minute/hour/day that I would like the bind to trigger, such as :-<br><div class="codebox"><p>Code: </p><pre><code>bind TIME - "20 10 15 * *" procname</code></pre></div>I would take that to read .. at 10:20am on the 15th of every month of every year. Don't forget to choose a day that exists in all months.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Sep 04, 2009 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-09-04T04:57:56-04:00</updated>

		<published>2009-09-04T04:57:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90152#p90152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90152#p90152"/>
		<title type="html"><![CDATA[Bind time triggered every month?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90152#p90152"><![CDATA[
Hi guys,<br><br>I was wondering how can I make a bind time that calls the script every month. E.g. if I wanted to execute it every minute, it would be:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *" proc</code></pre></div>But I want it every month, not every minute.. any ideas <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"> <br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Fri Sep 04, 2009 4:57 am</p><hr />
]]></content>
	</entry>
	</feed>
