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

	<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-04-20T10:47:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-20T10:47:10-04:00</updated>

		<published>2004-04-20T10:47:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35730#p35730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35730#p35730"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35730#p35730"><![CDATA[
np hehe <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=3151">Ofloo</a> — Tue Apr 20, 2004 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-04-20T10:25:52-04:00</updated>

		<published>2004-04-20T10:25:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35729#p35729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35729#p35729"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35729#p35729"><![CDATA[
Haha I don't know why I said it. I was feeling in a bad mood anyway. Not your fault!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Apr 20, 2004 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-20T04:09:22-04:00</updated>

		<published>2004-04-20T04:09:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35724#p35724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35724#p35724"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35724#p35724"><![CDATA[
<blockquote class="uncited"><div>how do you A or B means, how do I A, or how do I B. Which in your case means "how do I read the bot's config file without getting errors, or how do I execute the code?" </div></blockquote>true but i didn't mean it agressive as he did a <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> i did a :p so it means to me that he was joking and i did the same thing so not sur what u mean by agressive<br><br>edited : hmm it seems that the :p is on the wrong line but i meanth to put it there sorry didn't mean to make it sound like that sorry spock<br><br>tnx for pointing that out stdragon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Apr 20, 2004 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-20T04:07:17-04:00</updated>

		<published>2004-04-20T04:07:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35723#p35723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35723#p35723"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35723#p35723"><![CDATA[
as u sad just found out it is the client who disconnected not the socket .. tnx for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Apr 20, 2004 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-04-19T19:31:54-04:00</updated>

		<published>2004-04-19T19:31:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35719#p35719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35719#p35719"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35719#p35719"><![CDATA[
"Connection reset by peer" generally means the person who sent the data closed the socket before all of the data arrived. Maybe your test program that sends the file through the socket is exiting (not just closing the socket but actually exiting) before all the data is sent. One solution is to use an acknowledgement: send the file, wait for the server to send a reply like "ok". Another is to use fileevent writable to see when the socket isn't blocking (but I'm not totally sure if this will work 100%).<br><br>Also ofloo, I feel like you are kind of aggressive when people don't understand your questions and give "wrong" solutions, even though it's really your fault for not explaining it properly. Look at your initial post:<br><br>"how do i read the bots config file without getting errors ..? or executing that code ..??"<br><br>how do you A or B means, how do I A, or how do I B. Which in your case means "how do I read the bot's config file without getting errors, or how do I execute the code?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Apr 19, 2004 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-19T18:34:09-04:00</updated>

		<published>2004-04-19T18:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35718#p35718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35718#p35718"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35718#p35718"><![CDATA[
no its on the end there is a sequence if elsif elseif ..else and on the end close $sock<br><div class="codebox"><p>Code: </p><pre><code>fconfigure $sock -blocking 0 -buffering line</code></pre></div>i was thinking that this is the problem somehow ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Apr 19, 2004 6:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-19T18:29:46-04:00</updated>

		<published>2004-04-19T18:29:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35716#p35716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35716#p35716"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35716#p35716"><![CDATA[
It looks as though you are closing the connection after every gets (ie. whenever "command" is called...)...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Apr 19, 2004 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-19T17:56:23-04:00</updated>

		<published>2004-04-19T17:56:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35715#p35715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35715#p35715"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35715#p35715"><![CDATA[
hmm k stupid me i have been focusing on the config file while it was the socket that closed to fast how do i keep a server socket open long enough to send data true it and only close the sock after the data is send ..<br><br><br>the sock closes auto .. so i am not using close well on the end i do but .. <br><br>the syntax i use is <br><div class="codebox"><p>Code: </p><pre><code>server comand 555proc command {sock ipaddr port} {  fconfigure $sock -blocking 0 -buffering line  gets $sock line  #..script..  close $sock}#error writing "sock13": connection reset by peer</code></pre></div>i could not see this error so i tryed catching it with using an external file to load it with catch .. that was the result<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Apr 19, 2004 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-19T17:19:21-04:00</updated>

		<published>2004-04-19T17:19:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35714#p35714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35714#p35714"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35714#p35714"><![CDATA[
yes it was but i allready tryed it but for some reason its not working .. <br><br>i did <br><br><div class="codebox"><p>Code: </p><pre><code>set rfile [open eggdrop.conf r]foreach line [split [read $rfile] \n] {  #sock is where i send it to it allready exists.  puts $sock "$line"}close $rfile</code></pre></div>problem is only half of it arrives ..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Apr 19, 2004 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-04-19T15:08:14-04:00</updated>

		<published>2004-04-19T15:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35709#p35709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35709#p35709"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35709#p35709"><![CDATA[
open file and shove contents in variable without executing content<div class="codebox"><p>Code: </p><pre><code>set f [open "eggdrop.conf" r]set c "[read $f]"</code></pre></div>this does what you requested, though is most likely not what you want<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Mon Apr 19, 2004 3:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-19T14:39:30-04:00</updated>

		<published>2004-04-19T14:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35708#p35708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35708#p35708"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35708#p35708"><![CDATA[
open eggdrop config in r mode read the data set it to variable without executing the content of that file and without causing any errors .. <br><blockquote class="uncited"><div>make sure you wear glasses :p</div></blockquote>maybe u should<br><br>source executes it and my question was not to execute it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Apr 19, 2004 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-04-18T08:59:02-04:00</updated>

		<published>2004-04-18T08:59:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35673#p35673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35673#p35673"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35673#p35673"><![CDATA[
make sure you wear glasses  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>could you please have another go at explaining, i didnt quite get it<br><div class="codebox"><p>Code: </p><pre><code>if {[catch {source your.tcl} error]} { putlog "$error"}</code></pre></div>probably not what you want<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Apr 18, 2004 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-18T08:49:13-04:00</updated>

		<published>2004-04-18T08:49:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35672#p35672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35672#p35672"/>
		<title type="html"><![CDATA[reading eggdrop.conf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35672#p35672"><![CDATA[
how do i read the bots config file without getting errors ..? or executing that code ..??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Apr 18, 2004 8:49 am</p><hr />
]]></content>
	</entry>
	</feed>
