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

	<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-03-13T20:04:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-13T20:04:07-04:00</updated>

		<published>2005-03-13T20:04:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47583#p47583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47583#p47583"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47583#p47583"><![CDATA[
I think you don't know what I was talking about<br><br>your script relies on an external program (/home/shock/eggdrop/players) to feed it with results to show on IRC; that program has a bug (defect, if you will) which causes it to crash (terminate abnormally with a "segmentation violation" error message); so the whole issue doesn't have anything to do with TCL or eggdrop and you are in the wrong place to ask for help - contact your "clan" support or whoever happened to write that program<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 13, 2005 8:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mindflow]]></name></author>
		<updated>2005-03-13T19:51:33-04:00</updated>

		<published>2005-03-13T19:51:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47582#p47582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47582#p47582"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47582#p47582"><![CDATA[
I tryed your explanation, but didnt work. so still have the same problem, the only thing is that it dosent return the error. so it must be something else.. and i dont know what, cos the same code work just fine on a file called "unreal" .. and it's called the same way and everything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6052">mindflow</a> — Sun Mar 13, 2005 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-13T19:40:38-04:00</updated>

		<published>2005-03-13T19:40:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47581#p47581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47581#p47581"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47581#p47581"><![CDATA[
so you rather believe your line counting (and a <strong class="text-strong">return</strong> that spawns child process and then causes segmentation violation, lol) than my explanation?<br><br>*shrug*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 13, 2005 7:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mindflow]]></name></author>
		<updated>2005-03-13T19:25:59-04:00</updated>

		<published>2005-03-13T19:25:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47580#p47580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47580#p47580"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47580#p47580"><![CDATA[
This is what i can get true partyline:<br><br>« bot » Tcl: child killed: segmentation violation<br>« bot » Tcl: while executing<br>« bot » Tcl: "exec /home/shock/eggdrop/players $mess3 &gt; /tmp/players"<br>« bot » Tcl: (procedure "UnReal" line 92)<br>« bot » Tcl: invoked from within<br><br>and line 92 is: <br><br>return 0<br><br>so shouldent cos any error.. here is the code abow and below it, marked line 92:<br><div class="codebox"><p>Code: </p><pre><code>if {$mess == "!find"} {        set mess2 [string tolower [lindex $arg 1]]        if {$mess2 == "add"} {            if {[matchattr $hand m] == 0} {                puthelp "PRIVMSG $chan :$nick, lamers kan inte adda!!!"                return 0 &lt;&lt;-- line 92             }            puthelp "PRIVMSG $nick :Roger on that!!!"            set word2 [string tolower [lrange $arg 2 end]]            set test [exec echo $word2 &gt;&gt; /home/shock/eggdrop/servers]            return 0        }        set mess3 [lindex $arg 1]        if {$mess3 == ""} {            return 0        }        set vara [exec /home/shock/eggdrop/players $mess3 &gt; /tmp/players]         set of [open "/tmp/players"]         while {![eof $of]} {         set line [gets $of]         if {$line != ""} {                puthelp "PRIVMSG $chan : $line"         }        }        return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6052">mindflow</a> — Sun Mar 13, 2005 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-13T19:17:48-04:00</updated>

		<published>2005-03-13T19:17:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47578#p47578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47578#p47578"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47578#p47578"><![CDATA[
not an eggdrop problem<br><br>your external program /home/shock/eggdrop/players crashes and does nothing<br><br>you can catch the error and check if the output file exists:<div class="codebox"><p>Code: </p><pre><code>if ![catch {exec /home/shock/eggdrop/players $mess3 &gt; /tmp/players}] {  if [file exists /tmp/players] {    # do stuff  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 13, 2005 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mindflow]]></name></author>
		<updated>2005-03-13T18:19:59-04:00</updated>

		<published>2005-03-13T18:19:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47575#p47575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47575#p47575"/>
		<title type="html"><![CDATA[TCL problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47575#p47575"><![CDATA[
This is the error i get:<br><br>Tcl error [UnReal]: child killed: segmentation violation<br><br>this is the code i use:<div class="codebox"><p>Code: </p><pre><code>        set vara [exec /home/shock/eggdrop/players $mess3 &gt; /tmp/players]         set of [open "/tmp/players"]         while {![eof $of]} {         set line [gets $of]          if {$line != ""} {                puthelp "PRIVMSG $chan : $line"         }        }         return 0}</code></pre></div>now to my problem, i cant figure out what cosing the error, nethe how to solve it. <br><br>        set vara [exec /home/shock/eggdrop/players $mess3 &gt; /tmp/players]<br><br>thats the line cosing it, how can i make shure the file /tmp/payers exist ? i dont know how i can add a line that says "true" or "false", somone that have any ideas?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6052">mindflow</a> — Sun Mar 13, 2005 6:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
