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

	<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>2012-10-16T14:14:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-10-16T14:14:11-04:00</updated>

		<published>2012-10-16T14:14:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100148#p100148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100148#p100148"/>
		<title type="html"><![CDATA[Re: issue with &quot;bind cron&quot; on eggdrop 1.8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100148#p100148"><![CDATA[
Check it out here:<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 scroll down to <br>bind cron<blockquote class="uncited"><div>proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;weekday&gt;</div></blockquote>Looks like you are getting the weekday.<br><br><blockquote class="uncited"><div> How would I get the year then?</div></blockquote>On that tcl-commands page, find<br>strftime<br><br>Then check out:<br><a href="http://linux.about.com/library/cmd/blcmdl3_strftime.htm" class="postlink">http://linux.about.com/library/cmd/blcmdl3_strftime.htm</a><br>for the command syntax.<br><br>How about this:<br>strftime %Y<br><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 Oct 16, 2012 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Doktor J]]></name></author>
		<updated>2012-10-16T11:13:06-04:00</updated>

		<published>2012-10-16T11:13:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100146#p100146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100146#p100146"/>
		<title type="html"><![CDATA[issue with &quot;bind cron&quot; on eggdrop 1.8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100146#p100146"><![CDATA[
Hi, I'm running <strong class="text-strong">eggdrop v1.8.0+stripmoar</strong>, and all has been going well for me... until I decided to make a cron bind.<br><br>The bind itself seems to work fine:<div class="codebox"><p>Code: </p><pre><code>bind cron - {* * * * *} brick:cron</code></pre></div>(Yes, I want it running every minute; it will be doing various things based on various combinations of time and day)<br><br>However, the proc is giving me weird results.  My test proc looks like so:<div class="codebox"><p>Code: </p><pre><code>proc brick:cron {min hr day mo yr} {  putlog "${hr}:${min} ${mo}.${day} ${yr}"}</code></pre></div>but the output is like so:<br><strong class="text-strong">10:33 10.16 02</strong><br><br>Why is the year showing up as "02"?  My server's date command returns "Tue Oct 16 10:33:42 EDT 2012", so that's definitely not the year (unless it's giving me only the century portion, reversed o_O).<br><br>What makes this more confusing is that the documentation I found at <a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html#binda_cron" class="postlink">http://www.eggheads.org/support/egghtml ... binda_cron</a> shows the syntax as<div class="codebox"><p>Code: </p><pre><code>proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;weekday&gt; &lt;year&gt;</code></pre></div>but "10" obviously isn't a weekday, and looks like the month instead... and "02" doesn't appear to be the year.  Is it calling the proc with {minute hour day month weekday} or something screwy like that?  How would I get the year then?<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12097">Doktor J</a> — Tue Oct 16, 2012 11:13 am</p><hr />
]]></content>
	</entry>
	</feed>
