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

	<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>2009-11-11T21:01:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2009-11-11T21:01:57-04:00</updated>

		<published>2009-11-11T21:01:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90878#p90878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90878#p90878"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90878#p90878"><![CDATA[
<blockquote class="uncited"><div>...<br>You could try adding "2&gt;@1" to the end of the command line, <br>...</div></blockquote>Not sure of exactly what all that is/does,  but that sure made a difference.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Nov 11, 2009 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-11-10T21:05:14-04:00</updated>

		<published>2009-11-10T21:05:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90869#p90869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90869#p90869"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90869#p90869"><![CDATA[
Sorry, overlooked the "couldn't create error file" part :/<br>The error is thrown by the TclCreatePipeline function, which is responsible for building the needed pipes (if any) and tracking the pid's of all generated subprocesses.<br><br>Since the exec command supports pipes, tcl has to establish the means of the pipes. This is partly done using TclpCreateTempFile() (creates an opened, deleted file). In the windows-ported version it should create this file in the system temporary directory, or wherever your TMP or TEMP environment variable points at. If this function fails to return a valid TclFile resource, the above mentioned error is thrown.<br><br>You could try adding "2&gt;@1" to the end of the command line, as this will redirect any output to stdErr to stdOut, removing the need for a separate error file alltogether.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 10, 2009 9:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2009-11-10T20:17:56-04:00</updated>

		<published>2009-11-10T20:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90868#p90868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90868#p90868"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90868#p90868"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>.tcl exec command.exe /c dir</code></pre></div>is what I just tried.<br>and here is what I get:<br><br>&lt;botnick&gt; [19:11] tcl: evaluate (.tcl): exec command.exe /c dir<br>&lt;botnick&gt; Tcl error: couldn't create error file for command: no such file or directory<br><br><br>heheeh<br>I must be blind.<br>I can't see it...  I must be missing something.  Sorry.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Nov 10, 2009 8:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2009-11-10T20:14:59-04:00</updated>

		<published>2009-11-10T20:14:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90867#p90867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90867#p90867"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90867#p90867"><![CDATA[
<blockquote class="uncited"><div>Well, the error is simple enough. On windows system, there is no binary named dir (that's an internal command in the "dos prompt"/"command prompt" - aka command.com or cmd.exe). As such, you'll have to launch the command promt and pass on the "dir" command to it.<div class="codebox"><p>Code: </p><pre><code>exec command.exe /c dir</code></pre></div>So, simple enough, the exec command can only launch binaries with either full path, or located within the search path. It will not load any external command parsers such as command.com automatically.</div></blockquote>Ahh...<br>I hadn't considered that.<br>Thanks.<br><blockquote class="uncited"><div>The very same applies under linux-systems; I.E you cannot use the Bash internal command "jobs" directly from the exec command, but you need to load a bash shell first...</div></blockquote>That sounds like what I did.    ... a bash script.  First line would have loaded the shell.<br>It's been a while...  I'd have to go check to be sure though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Nov 10, 2009 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-11-10T16:07:17-04:00</updated>

		<published>2009-11-10T16:07:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90866#p90866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90866#p90866"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90866#p90866"><![CDATA[
Well, the error is simple enough. On windows system, there is no binary named dir (that's an internal command in the "dos prompt"/"command prompt" - aka command.com or cmd.exe). As such, you'll have to launch the command promt and pass on the "dir" command to it.<div class="codebox"><p>Code: </p><pre><code>exec command.exe /c dir</code></pre></div>So, simple enough, the exec command can only launch binaries with either full path, or located within the search path. It will not load any external command parsers such as command.com automatically.<br>The very same applies under linux-systems; I.E you cannot use the Bash internal command "jobs" directly from the exec command, but you need to load a bash shell first...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 10, 2009 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2009-11-10T15:23:48-04:00</updated>

		<published>2009-11-10T15:23:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90865#p90865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90865#p90865"/>
		<title type="html"><![CDATA[Is there a trick to using  .tcl exec   ?     (Windrop)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90865#p90865"><![CDATA[
Hello,<br><br>Found a script I wanted to try, and it errors.   Narrowed it down to the<br>exec   command.<br><br>Tried some experimenting, and didn't figure it out yet.<br>Always get this:  couldn't create error file for command: no such file or directory<br><br><br>Even tried in partyline:     .tcl exec dir<br>and get:<br>&lt;botnick&gt; [14:19] tcl: evaluate (.tcl): exec dir<br>&lt;botnick&gt; Tcl error: couldn't create error file for command: no such file or directory<br><br>I'm pretty sure I've used  exec  on a linux eggdrop, and it worked ok.<br>But this is a Windrop I'm working on this time.<br><br>There must be something simple I've missing....<br><br><br>(I see it mentioned, with a search here, but I didn't find a definitive answer to the problem. )<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Nov 10, 2009 3:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
