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

	<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>2004-11-25T16:47:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sergios]]></name></author>
		<updated>2004-11-25T16:47:36-04:00</updated>

		<published>2004-11-25T16:47:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43111#p43111</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43111#p43111"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43111#p43111"><![CDATA[
Yes, i see timer, i change it to see if it works. Yes on dalnet it works, but on unrealircd it doesnt work. the numerics on unreal are  <br>#define RPL_ADMINME          256<br>#define RPL_ADMINLOC1        257<br>#define RPL_ADMINLOC2        258<br>#define RPL_ADMINEMAIL       259<br>The binds that you have.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5236">Sergios</a> — Thu Nov 25, 2004 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-25T16:18:29-04:00</updated>

		<published>2004-11-25T16:18:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43110#p43110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43110#p43110"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43110#p43110"><![CDATA[
oh, and in case you haven't noticed - the code I gave you writes to file once every hour, on top of the hour; if you need it to be triggered more frequently, tweak the time bind or use timer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Nov 25, 2004 4:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-25T16:09:29-04:00</updated>

		<published>2004-11-25T16:09:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43109#p43109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43109#p43109"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43109#p43109"><![CDATA[
it works on my bot<br><br>check whether your server's numerics for ADMIN reply are the same, if your server replies to /admin at all, and if there's no lag<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Nov 25, 2004 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sergios]]></name></author>
		<updated>2004-11-25T14:46:18-04:00</updated>

		<published>2004-11-25T14:46:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43108#p43108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43108#p43108"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43108#p43108"><![CDATA[
I add the numerics of binds that you give me (there same as numerics server) but the file is still empty. Any sollution?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5236">Sergios</a> — Thu Nov 25, 2004 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-25T14:21:48-04:00</updated>

		<published>2004-11-25T14:21:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43106#p43106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43106#p43106"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43106#p43106"><![CDATA[
I thought eggdrop matches raw bind mask with wildcards; turns out that's not the case; from src/mod/server.mod/servmsg.c:<div class="codebox"><p>Code: </p><pre><code>  x = check_tcl_bind(H_raw, code, 0, " $_raw1 $_raw2 $_raw3",                     MATCH_EXACT | BIND_STACKABLE | BIND_WANTRET);</code></pre></div>so, it's not MATCH_MASK as I thought it would be (and should be, IMO)<br><br>so, the solution will become:<div class="codebox"><p>Code: </p><pre><code>bind raw - 256 myrawbind raw - 257 myrawbind raw - 258 myrawbind raw - 259 myrawbind time - "00 % % % %" {set f [open foo.txt w]; putserv admin;#}proc myraw {f k t} {  puts $::f [string trimleft [join [lrange [split $t] 1 e]] :]  if {$k == 259} {close $::f}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Nov 25, 2004 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sergios]]></name></author>
		<updated>2004-11-25T13:16:16-04:00</updated>

		<published>2004-11-25T13:16:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43104#p43104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43104#p43104"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43104#p43104"><![CDATA[
It doesnt write anything into the foo.txt file. It create the file but the file is still empty. Any suggestion??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5236">Sergios</a> — Thu Nov 25, 2004 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-25T01:41:36-04:00</updated>

		<published>2004-11-25T01:41:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43100#p43100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43100#p43100"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43100#p43100"><![CDATA[
it is:<div class="codebox"><p>Code: </p><pre><code>bind raw - * myrawbind time - "00 % % % %" {set f [open foo.txt w]; putserv admin;#} proc myraw {f k t} {  if [string match 25\[6-9\] $k] {puts $::f [join [lrange [split $t] 1 e]]}  if {$k == 259} {close $::f}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Nov 25, 2004 1:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sergios]]></name></author>
		<updated>2004-11-24T23:41:34-04:00</updated>

		<published>2004-11-24T23:41:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43099#p43099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43099#p43099"/>
		<title type="html"><![CDATA[Execute a raw command after x minutes / write result to file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43099#p43099"><![CDATA[
Is it possible to make a script execute a raw command like /admin every x minuters  and the result of this command write  automatically to admin.html?? I have try but i get errors with raw command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5236">Sergios</a> — Wed Nov 24, 2004 11:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
