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

	<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>2021-06-09T11:29:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-06-09T11:29:50-04:00</updated>

		<published>2021-06-09T11:29:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109971#p109971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109971#p109971"/>
		<title type="html"><![CDATA[Trouble with cron package]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109971#p109971"><![CDATA[
Hi there,<br><br>I've a small trouble using the cron package.<br>My try:<br><div class="codebox"><p>Code: </p><pre><code>.tcl ::cron::task exists testTcl: 0.tcl proc mycron {} { putlog "done : [::cron::task info test]"; ::cron::in test 10 mycron}Tcl: .tcl ::cron::in test 10 mycronTcl: test[17:18:44] done : object {} lastevent 1623251925001 lastrun 1623251925001 err 0 result {} running 1 coroutine {} scheduled 1623251925000 frequency -1 command mycron.tcl ::cron::task exists testTcl: 0</code></pre></div>In my mind, the cron must be re-launch as I redo a <em class="text-italics">::cron::in</em> in the procedure, but it doesn't.<br><br>If I launch it with ::cron::every, the result is:<div class="codebox"><p>Code: </p><pre><code>.tcl ::cron::every test 5 mycronTcl: after#93[17:24:30] done : object {} lastevent 1623252271001 lastrun 1623252271001 err 0 result {} running 1 coroutine {} scheduled 1623252276000 frequency 5000 command mycron[17:24:36] done : object {} lastevent 1623252276003 lastrun 1623252276003 err 0 result test running 1 coroutine {} scheduled 1623252281000 frequency 5000 command mycron[17:24:41] done : object {} lastevent 1623252281002 lastrun 1623252281002 err 0 result test running 1 coroutine {} scheduled 1623252286000 frequency 5000 command mycron[17:24:46] done : object {} lastevent 1623252286003 lastrun 1623252286003 err 0 result test running 1 coroutine {} scheduled 1623252291000 frequency 5000 command mycron[17:24:51] done : object {} lastevent 1623252291003 lastrun 1623252291003 err 0 result test running 1 coroutine {} scheduled 1623252296000 frequency 5000 command mycron[17:24:55] done : object {} lastevent 1623252296003 lastrun 1623252296003 err 0 result test running 1 coroutine {} scheduled 1623252301000 frequency 5000 command mycron</code></pre></div>As you see, the process "test" is not modified with <em class="text-italics">::cron::in</em>.<br><br>Any idea about what I do wrong or misunderstand ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Jun 09, 2021 11:29 am</p><hr />
]]></content>
	</entry>
	</feed>
