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

	<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>2015-05-28T18:57:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-05-28T18:57:13-04:00</updated>

		<published>2015-05-28T18:57:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104184#p104184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104184#p104184"/>
		<title type="html"><![CDATA[Looking  BIND processes again ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104184#p104184"><![CDATA[
How you might put a timer between each <em class="text-italics">if </em>...<br>Perhaps with that fixed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Thu May 28, 2015 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-05-27T08:49:40-04:00</updated>

		<published>2015-05-27T08:49:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104167#p104167</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104167#p104167"/>
		<title type="html"><![CDATA[Looking  BIND processes again ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104167#p104167"><![CDATA[
I made a code to verify that bind cron processes are active (bind) and which are not (unbind).<br>But not working properly, there are processes that are active (bind) and gives me like they are (unbind).<br>They bind cron processes that are checked if they are ON (bind) or OFF (unbind) are:<blockquote class="uncited"><div>bind cron - {*/10 0 * * 1,2,3,4} advertise<br>bind cron - {*/15 0 * * 1,2,3,4} advertise15<br>bind cron - {*/20 0 * * 1,2,3,4} advertise2<br>bind cron - {*/30 0 * * 1,2,3,4} advertise3</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pub ato|vn !timers control:timersproc control:timers { nick uhost hand chan arg } {global canal_admin foreach ele [binds cron] {foreach {type flags cmd hits func} $ele {if {$func eq "advertise"} { putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 10 min \0033ON"} if {$func ne "advertise"} { putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 10 min \0034OFF"} if {$func eq "advertise15"} { putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 15 min \0033ON"}if {$func ne "advertise15"} { putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 15 min \0034OFF"}if {$func eq "advertise2"} { putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 20 min \0033ON"}if {$func ne "advertise2"} { putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 20 min \0034OFF"}if {$func eq "advertise3"} { putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 30 min \0033ON"}if {$func ne "advertise3"} { putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 30 min \0034OFF"}} break}}</code></pre></div>I tried several ways, including testing the idea of ​​<strong class="text-strong">caesar</strong> to look BIND process, which is at the end of this <a href="http://forum.egghelp.org/viewtopic.php?t=19971" class="postlink">post</a>.<br><br>Using the form <em class="text-italics">if </em>- <em class="text-italics">else</em>, at times it not find anything, go to the line off <em class="text-italics">break</em>.<br>For debuggin purpose, I changed the line <em class="text-italics">break</em>:<div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $canal_admin :I found nothing!"</code></pre></div>And runs that line.<br>Example:<div class="codebox"><p>Code: </p><pre><code>if {$func eq "advertise"} {    putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 10 min \0033ON"} else {        putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 10 min \0034OFF"    }if {$func eq "advertise15"} {putquick "PRIVMSG $canal_admin :\0033 \(STATUS TIMERs\)\002\0031 TIMER 15 min \0033ON"} else {putquick "PRIVMSG $canal_admin :\0034 \(STATUS TIMERs\)\002\0031 TIMER 15 min \0034OFF"} ######etc.................putquick "PRIVMSG $canal_admin :I found nothing!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Wed May 27, 2015 8:49 am</p><hr />
]]></content>
	</entry>
	</feed>
