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

	<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>2006-02-27T00:33:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-27T00:33:48-04:00</updated>

		<published>2006-02-27T00:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60687#p60687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60687#p60687"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60687#p60687"><![CDATA[
report the bug to windrop dev folks, we can't help you any further<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Feb 27, 2006 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-26T21:54:03-04:00</updated>

		<published>2006-02-26T21:54:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60685#p60685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60685#p60685"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60685#p60685"><![CDATA[
Thank you, but i know how open | and exec work. =) My code works already on unix/eggdrop system without problems.<br><br>My tests:<br><br>- with unix: eggdrop 1.6.17 - working fine<br>channelid`s like file3<br><br>- with unix: tclsh - working fine<br>channelid`s like file3<br><br>- with windows xp: windrop 1.6.17 - Tcl error: couldn't create error file for command: no such file or directory<br><br>- with windows xp: 1.6.18cvs - Tcl error: couldn't create error file for command: no such file or directory<br><br>- with windows xp: 1.6.16 - working fine<br>(but this version is outdated, i don`t really want to use it)<br>the channelid`s are like file107e0560<br><br>the incomprehensible was that this (from bgExec):<br>set redir [expr {[info patchlevel] &gt;= "8.4.7"?{2&gt;@1}:{2&gt;@stdout}}]<br>if [catch {open "| $prog $redir" r} pH] {<br>will work with windrop 1.6.17 and 1.6.18cvs [but for read acess mode r only :/].<br><br>I think the problem is about the windrop/cygwin/tcl version? Is there another solution then using windrop 1.6.16?<br><br>DeKus: May I pm you on irc?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Sun Feb 26, 2006 9:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-02-25T07:22:43-04:00</updated>

		<published>2006-02-25T07:22:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60643#p60643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60643#p60643"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60643#p60643"><![CDATA[
you can savely delete them for your script. &gt; changes the default output (stdout) which is usually the console (which you read from with gets/read). example from tclsh console:<div class="codebox"><p>Code: </p><pre><code>~$ tclsh% open "| uname" rfile3% read file3Linux% close file3%</code></pre></div>I hope you will understand now better how it works. Don't forget to use <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/fileevent.htm" class="postlink">fileevent</a> for true asyncronous acces (this above is syncron, too).<br>So dont forget to save the return value of open, because you will need it to read from <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Feb 25, 2006 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-24T10:36:33-04:00</updated>

		<published>2006-02-24T10:36:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60629#p60629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60629#p60629"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60629#p60629"><![CDATA[
The temp path is correct  (otherwise the bot won`t start).<br><br>--<br><br>from here: <a href="http://wiki.tcl.tk/12704" class="postlink">http://wiki.tcl.tk/12704</a> (is working anyway, eggdrop just doesn`t have the command auto_execok)<div class="codebox"><p>Code: </p><pre><code>set redir [expr {[info patchlevel] &gt;= "8.4.7"?{2&gt;@1}:{2&gt;@stdout}}]if [catch {open "| $prog $redir" r} pH] {</code></pre></div>i wonder that i can open and execute something on that way. but i don`t really understand why. could someone explain what these changes do?<br>2&gt;@1<br>2&gt;@stdout<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Fri Feb 24, 2006 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-20T20:52:43-04:00</updated>

		<published>2006-02-20T20:52:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60549#p60549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60549#p60549"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60549#p60549"><![CDATA[
check your <em class="text-italics">temp-path</em> and if you have c:\tmp; also check the FAQ at windrop's website<br><br>or wait for DeKus, he's our windrop guru; I personally have never used the thing, Windows is desktop OS to me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Feb 20, 2006 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-20T20:23:27-04:00</updated>

		<published>2006-02-20T20:23:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60548#p60548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60548#p60548"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60548#p60548"><![CDATA[
i got it from here<br><a href="http://windrop.sourceforge.net/downloads.html" class="postlink">http://windrop.sourceforge.net/downloads.html</a><br><br>before i got Eggdrop v1.6.17 Handlen32 (08.07.2005)<br><br>and now i`ve updated to Eggdrop v1.6.18+spelling-errors-suck Handlen32 (25.12.2005)<br>info tclversion 8.4<br>info patchlevel 8.4.12<br><br>the error still comes up.<br>it`s not cause i use handlen32  version? (i doub`t that this has anything to do with it)<br><br>btw: what means "spelling-errors-suck"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Mon Feb 20, 2006 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-20T19:50:27-04:00</updated>

		<published>2006-02-20T19:50:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60547#p60547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60547#p60547"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60547#p60547"><![CDATA[
what's the Tcl version?<br><br>this thing looks pretty ancient to me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Feb 20, 2006 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-02-20T19:44:07-04:00</updated>

		<published>2006-02-20T19:44:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60545#p60545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60545#p60545"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60545#p60545"><![CDATA[
You'll need to find the appropriate ported Unix tools to use with Windrop or install cygwin and compile them yourself. The tool(s) are then copied into your Windrop main folder.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Feb 20, 2006 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-20T17:55:09-04:00</updated>

		<published>2006-02-20T17:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60542#p60542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60542#p60542"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60542#p60542"><![CDATA[
anyone?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Mon Feb 20, 2006 5:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-07T15:48:26-04:00</updated>

		<published>2006-02-07T15:48:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60201#p60201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60201#p60201"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60201#p60201"><![CDATA[
My failure, i forgot to add thats about windrop.<br><br>exec and open |<br>will always return an error like:<br>Tcl error: couldn't create error file for command: no such file or directory<br><br>Is it possible to fix that?<br><br>EDIT:<br>BgExec ( <a href="http://wiki.tcl.tk/12704" class="postlink">http://wiki.tcl.tk/12704</a> ) won`t work too, cause the mainproc is going to use open | aswell too.<br><br>Is there any way to execute something (windrop)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Tue Feb 07, 2006 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-07T00:02:59-04:00</updated>

		<published>2006-02-07T00:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60186#p60186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60186#p60186"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60186#p60186"><![CDATA[
search for "tail -f"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Feb 07, 2006 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-02-06T22:00:04-04:00</updated>

		<published>2006-02-06T22:00:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60183#p60183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60183#p60183"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60183#p60183"><![CDATA[
You can use<div class="codebox"><p>Code: </p><pre><code>open "|&lt;command&gt;"</code></pre></div>instead, which is supposed to do the same without waiting like exec does.<br><br>A forum search on the topic will result in great information about it. Also, you can take a look at bgexec.tcl by strikelight which does what you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Feb 06, 2006 10:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2006-02-06T16:22:46-04:00</updated>

		<published>2006-02-06T16:22:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60173#p60173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60173#p60173"/>
		<title type="html"><![CDATA[exec in backround/with callback possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60173#p60173"><![CDATA[
Hey<br><br>I want a eggdrop to start a external application. Exec wait`s until the prozess ends and will block anything else. Thats what i want to prevent. Is there a way to start a process and to get a callback after it?<br><br>best regards<br>sKy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Mon Feb 06, 2006 4:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
