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

	<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>2002-11-17T14:22:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-17T14:22:24-04:00</updated>

		<published>2002-11-17T14:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13262#p13262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13262#p13262"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13262#p13262"><![CDATA[
The $text is fine where it is. If you failed to understand what he said, then you might as well forget what he said.<br><br>The "can't duplicate input handler" messages, is generated mainly of windows systems, and is usualy a sign that it was able to execute the program (IE, it worked) but it failed to do some internal tasks.<br><br>There is not much else you can do, though, you could try creating a .bat (MSDOS batch program) to launch mircstats, and load the batch file instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 17, 2002 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-11-17T13:23:04-04:00</updated>

		<published>2002-11-17T13:23:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13261#p13261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13261#p13261"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13261#p13261"><![CDATA[
I've tried your advice and still can't get it to work. However, I now have a different error message:<br><br>[17:12] Tcl error [stats]: couldn't duplicate input handle: bad file number<br><br>I've checked the filenames and they are fine. I've also set the console flags to +d but there are no other error messages.<br><br>If I take text out of the first line, it says:<br><br>[17:06] Tcl error [stats]: called "stats" with too many arguments<br><br>So, once again, any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Sun Nov 17, 2002 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-11-14T18:33:33-04:00</updated>

		<published>2002-11-14T18:33:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13171#p13171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13171#p13171"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13171#p13171"><![CDATA[
It also looks like you aren't passing it $text, which is included in the first line of your proc. Do you need to pass options to it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Thu Nov 14, 2002 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-14T17:04:40-04:00</updated>

		<published>2002-11-14T17:04:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13170#p13170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13170#p13170"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13170#p13170"><![CDATA[
Using your example, you can use<br><div class="codebox"><p>Code: </p><pre><code>proc stats {nick host hand chan text} { exec "mircstats/mircstats.exe"}</code></pre></div>You might want to increase your console flags and look for error messages being returned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Nov 14, 2002 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-11-14T16:26:11-04:00</updated>

		<published>2002-11-14T16:26:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13169#p13169</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13169#p13169"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13169#p13169"><![CDATA[
Thanks but I still can't get it to work...<br><br>The bot is in<br>f:\documents and settings\simon\my documents\windrop<br>and mircstats is in <br>f:\documents and settings\simon\my documents\windrop\mircstats\mircstats.exe<br><br>I'm a bit stuck for ideas at the moment...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Thu Nov 14, 2002 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-11T19:02:49-04:00</updated>

		<published>2002-11-11T19:02:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13066#p13066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13066#p13066"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13066#p13066"><![CDATA[
Using \ as teh first character of the location, is the same as giving the full path.<br><br>You bot will most likely be looking in "c:\mircstats\mircstats.exe".<br><br>The first characters lets the interpreter know what location you are looking in. Seeing as you are looking in a directory uinder the bots directory, you simply drop the first \<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 11, 2002 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-11-11T18:51:10-04:00</updated>

		<published>2002-11-11T18:51:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13065#p13065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13065#p13065"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13065#p13065"><![CDATA[
OK I didn't realise that...my current code looks like this:<div class="codebox"><p>Code: </p><pre><code>proc stats {nick host hand chan text} {exec {\mircstats\mircstats.exe}}</code></pre></div>Where mircstats is a directory under the root of the bot. However, when I type it the bot comes up with:<br><br>Tcl error [stats]: couldn't execute "\mircstats\mircstats.exe": no such file of directory<br><br>I've also tried the full path with drive letter and everything but still with no luck. Any help would be appreciated!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Mon Nov 11, 2002 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-11T14:32:26-04:00</updated>

		<published>2002-11-11T14:32:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13056#p13056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13056#p13056"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13056#p13056"><![CDATA[
The exec command will work on windows.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 11, 2002 2:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[OnFire]]></name></author>
		<updated>2002-11-11T14:07:32-04:00</updated>

		<published>2002-11-11T14:07:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13052#p13052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13052#p13052"/>
		<title type="html"><![CDATA[Running A Program from a TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13052#p13052"><![CDATA[
Hi<br>I'm not sure if this can be done and I've had a look through the forums without luck.<br><br>I'd like to run mircstats from a tcl script. I know about the exec command but I've got a windrop so at the moment I can't get it to run because I use Windows. Does anyone know how to do this, or is it just not possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1982">OnFire</a> — Mon Nov 11, 2002 2:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
