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

	<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-11-05T18:57:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-05T18:57:15-04:00</updated>

		<published>2007-11-05T18:57:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77478#p77478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77478#p77478"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77478#p77478"><![CDATA[
Registering a timer would still cause it to be executed within the same thread, causing the same blocking condition.<br>I have no experience using the Thread package with eggies myself, would be nice to hear if it goes all well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 05, 2007 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-11-05T15:04:59-04:00</updated>

		<published>2007-11-05T15:04:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77471#p77471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77471#p77471"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77471#p77471"><![CDATA[
Another (silly?) solution could be the use of a timer (1 seconde) to launch your proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Nov 05, 2007 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[needHelp]]></name></author>
		<updated>2007-11-05T11:29:16-04:00</updated>

		<published>2007-11-05T11:29:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77470#p77470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77470#p77470"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77470#p77470"><![CDATA[
as i already said i dont want to run an executable.<br><br>But i think i solved it on my own using Thread 2.6 package.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9428">needHelp</a> — Mon Nov 05, 2007 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-05T10:02:37-04:00</updated>

		<published>2007-11-05T10:02:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77465#p77465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77465#p77465"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77465#p77465"><![CDATA[
Could usually be done quite easily..<br><br>Depending on system, this might work:<div class="codebox"><p>Code: </p><pre><code>exec -- command &amp;</code></pre></div>A slightly more complicated approach, that also allows you to access the stdin and stdout pipes through file-handles<div class="codebox"><p>Code: </p><pre><code>proc readcmd {process} { if {[gets $process data] &lt; 0} {  if {[eof $process]} {   close $chan   return  } } {  #Process the output stored in $data, or just ignore it? }}set pid [open "| command" "RDWR"]fconfigure $pid -blocking 0 fileevent $pid -readable [list readcmd $pid]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 05, 2007 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-11-04T22:34:42-04:00</updated>

		<published>2007-11-04T22:34:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77454#p77454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77454#p77454"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77454#p77454"><![CDATA[
I dont know if thats really possible, thou it all depends on what the script dose? If its something like running a progeram or an exacutable, that would probably ...i would think could easyerly be done. But other than that, i could recommend execting tclsh and running it that way? or use of a pipe or unix sock maybe?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Nov 04, 2007 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[needHelp]]></name></author>
		<updated>2007-11-03T20:31:40-04:00</updated>

		<published>2007-11-03T20:31:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77428#p77428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77428#p77428"/>
		<title type="html"><![CDATA[launching a proc in background?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77428#p77428"><![CDATA[
hi, i wrote a proc for my eggdrop which takes some time.<br>while running this proc the eggdrop cant respond to other commands and sometimes i get ping timeout.<br><br>the proc has to take the long time so i dont want to change anything on it.<br><br>instead im looking for a method to call the proc from the binded proc to launch in background or in a child process.<br><br>i already tried forking but without success.<br><br>any1 here has an idea?<br><br>thx in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9428">needHelp</a> — Sat Nov 03, 2007 8:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
