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

	<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>2007-10-23T10:58:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BeBoo]]></name></author>
		<updated>2007-10-23T10:58:02-04:00</updated>

		<published>2007-10-23T10:58:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77038#p77038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77038#p77038"/>
		<title type="html"><![CDATA[Help with tcl -&gt; sh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77038#p77038"><![CDATA[
Is the sh script called from an already existing tcl script via the bot? If so, you would probably want the sh script to move the tcl to your scripts folder and have it modify your eggdrop.conf file. Once it's complete, have your tcl script you called originally to rehash your bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9337">BeBoo</a> — Tue Oct 23, 2007 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-22T10:40:57-04:00</updated>

		<published>2007-10-22T10:40:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77010#p77010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77010#p77010"/>
		<title type="html"><![CDATA[Help with tcl -&gt; sh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77010#p77010"><![CDATA[
Simply put, using exec spawns a new child-process, where the only connection inbetween the processes is the stdout and stderr pipe from the child, which is returned to the tcl environment as return-value of exec once the child is terminated.<br><br>As such, any script or command run as or by the child will be completely unaware of the eggdrop environment. There is no simple way of "connecting" them as you describe. You could relay data inbetween the processes using sockets, although you'd have to create an API for that.<br><br>One question though, if you need eggdrop functionability in your secondary tcl-script, why don't you run it directly from eggdrop's tcl-environment?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Oct 22, 2007 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-10-22T09:22:18-04:00</updated>

		<published>2007-10-22T09:22:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77004#p77004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77004#p77004"/>
		<title type="html"><![CDATA[Help with tcl -&gt; sh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77004#p77004"><![CDATA[
Whats the .sh file used for? If its written in tcl you can just change it so eggdrop can use it which pretty much means # mv file.sh file.tcl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Mon Oct 22, 2007 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TurboPropp]]></name></author>
		<updated>2007-10-20T08:54:23-04:00</updated>

		<published>2007-10-20T08:54:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76910#p76910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76910#p76910"/>
		<title type="html"><![CDATA[Help with tcl -&gt; sh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76910#p76910"><![CDATA[
Ok.. I'm kinda new to tcl scripting<br><br>I know you can run a .sh script from tcl using "exec"<br>And to run a tcl file from sh u can use "tclsh"<br><br>So my bot's script, runs a .sh file, and when the .sh file is done it then runs a new .tcl file. But that new .tcl file is not "connected" to the eggdrop so commands like "putmsg $chan" does not work.<br> <br>Is there any way to make them "connect" ? <br>Or another solution would be to make the tcl script wait until the .sh script was done, and then go on, but dont know how to do that either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9384">TurboPropp</a> — Sat Oct 20, 2007 8:54 am</p><hr />
]]></content>
	</entry>
	</feed>
