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

	<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>2005-02-28T21:38:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-28T21:38:23-04:00</updated>

		<published>2005-02-28T21:38:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47080#p47080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47080#p47080"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47080#p47080"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>kudos to user for the "args elimination" (as demond put it)</div></blockquote>...and to eggdev team for passing those [bind] arguments together in a string <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"></div></blockquote>subtract some kudos for the dns module <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> (welcome back demond)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Feb 28, 2005 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-02-28T21:22:21-04:00</updated>

		<published>2005-02-28T21:22:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47078#p47078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47078#p47078"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47078#p47078"><![CDATA[
<blockquote class="uncited"><div>kudos to user for the "args elimination" (as demond put it)</div></blockquote>...and to eggdev team for passing those [bind] arguments together in a string <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Feb 28, 2005 9:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-28T06:06:25-04:00</updated>

		<published>2005-02-28T06:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47037#p47037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47037#p47037"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47037#p47037"><![CDATA[
Stupid question ! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>...<br><div class="codebox"><p>Code: </p><pre><code>set sql "INSERT INTO motd values ('',\"$t\");"</code></pre></div>Tnx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Mon Feb 28, 2005 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-28T06:00:39-04:00</updated>

		<published>2005-02-28T06:00:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47036#p47036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47036#p47036"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47036#p47036"><![CDATA[
I've edit the script ...<br><div class="codebox"><p>Code: </p><pre><code>set db_handle [mysqlconnect -host localhost -user username  -password mypass -db motd]proc raw:wf { f k t } {global db_handleset sql "INSERT INTO motd values ('','$t');"set result [mysqlexec $db_handle $sql]}</code></pre></div>it's correct ?<br><br>This code work fine at 90% ... at some line i receive this error :<br><br>Tcl error [raw:wf]: mysqlexec/db server: You have an error in your SQL s<br>yntax near '__/ __/ _` |')' at line 1<br><br>The script dont write this line and jump to next  .<br><br>Result : some lines (like 5/50) isnt added to db .<br><br>Any idea ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Mon Feb 28, 2005 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-28T04:29:55-04:00</updated>

		<published>2005-02-28T04:29:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47027#p47027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47027#p47027"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47027#p47027"><![CDATA[
Dear gb , my problem is not mysql syntax (this isnt mysql forum) but how to add at this script , a possibility to store data into mysql db .<br>I've tryed many time but  i'm not a good tcl programmer .<br><br>tnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Mon Feb 28, 2005 4:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-02-26T12:11:26-04:00</updated>

		<published>2005-02-26T12:11:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46964#p46964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46964#p46964"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46964#p46964"><![CDATA[
<a href="http://dev.mysql.com/doc/mysql/en/insert.html" class="postlink">http://dev.mysql.com/doc/mysql/en/insert.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sat Feb 26, 2005 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-26T10:16:27-04:00</updated>

		<published>2005-02-26T10:16:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46963#p46963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46963#p46963"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46963#p46963"><![CDATA[
TNX TNX TNX !!!!<br><br>i've another question ...<br>you know how to put the motd into mysql db ?<br><br>(i use mysqltcl)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Sat Feb 26, 2005 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2005-02-22T21:20:57-04:00</updated>

		<published>2005-02-22T21:20:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46863#p46863</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46863#p46863"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46863#p46863"><![CDATA[
<blockquote class="uncited"><div>Sorry , but in your link is reported how to write/read to/from file ... no how to receive a list of linked server and motd and write it to text file.</div></blockquote>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"> sorry right back at'cha, but in the end, the link I gave you is precisely what you will need to study and practice, so <em class="text-italics">you can begin writing tcl<em class="text-italics">, instead of relying on others forever and ever..<br>p.s. the <strong class="text-strong">puts</strong> command is probably the most common way to write something into a file... you might wish to read <a href="http://www.suninet.nl/tclguide/index.php?chap=11" class="postlink">chapter 11 - working with files</a><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></em></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Tue Feb 22, 2005 9:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-22T20:43:05-04:00</updated>

		<published>2005-02-22T20:43:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46860#p46860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46860#p46860"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46860#p46860"><![CDATA[
<blockquote class="uncited"><div>Sorry , but in your link is reported how to write/read to/from file ... no how to receive a list of linked server and motd and write it to text file .</div></blockquote>Obviously they were reference links for you to understand how todo it yourself, not the exact script which would be obvious.<br><br>You have have to simply bind raw to the numbers which your ircd has for motd, links and etc then go ahead open a .txt or whatever extension file you want, write it in, and close it.<br><br>The whole code as spock gave some of it, shouldn't be more than 10 lines I'd say.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Feb 22, 2005 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-02-22T12:29:25-04:00</updated>

		<published>2005-02-22T12:29:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46856#p46856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46856#p46856"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46856#p46856"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind raw - 375 { set ::motdfp [open motd.txt w];#}bind raw - 372 raw:wfbind raw - 376 { close $::motdfp;#}proc raw:wf { f k t } { puts $::motdfp $t ; return }</code></pre></div>kudos to user for the "args elimination" (as demond put it)<br><br>the numerics for "links" are 364 and 365(end of links) so have a go at it yourself before asking for more help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Feb 22, 2005 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-22T11:22:14-04:00</updated>

		<published>2005-02-22T11:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46853#p46853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46853#p46853"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46853#p46853"><![CDATA[
Sorry , but in your link is reported how to write/read to/from file ... no how to receive a list of linked server and motd and write it to text file .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Tue Feb 22, 2005 11:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2005-02-22T10:43:58-04:00</updated>

		<published>2005-02-22T10:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46852#p46852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46852#p46852"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46852#p46852"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">Basic File Operations</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Tue Feb 22, 2005 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0v3r]]></name></author>
		<updated>2005-02-22T09:44:11-04:00</updated>

		<published>2005-02-22T09:44:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46850#p46850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46850#p46850"/>
		<title type="html"><![CDATA[motd &amp; server link TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46850#p46850"><![CDATA[
Hello people <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I need help about a tcl that write the motd (/motd) and linked server (/links) in a txt file , when eggdrop connect to server .<br><br>Help me please <br><br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6007">r0v3r</a> — Tue Feb 22, 2005 9:44 am</p><hr />
]]></content>
	</entry>
	</feed>
