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

	<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>2005-04-24T08:40:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-24T08:40:22-04:00</updated>

		<published>2005-04-24T08:40:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48507#p48507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48507#p48507"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48507#p48507"><![CDATA[
I've tried './psybnc &amp;' before and the bot still forze, didn't try nohup though... I'll give it a try when I feel like it <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=3085">Sir_Fz</a> — Sun Apr 24, 2005 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Adrenalin]]></name></author>
		<updated>2005-04-24T02:07:32-04:00</updated>

		<published>2005-04-24T02:07:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48500#p48500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48500#p48500"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48500#p48500"><![CDATA[
Imo eggdrop stuck because it wait until the exec will return somethink.. Or until the executed proces will go to background or will end..<br>Maybe i'm wrong.. You could also try ./psybnc &amp;(but..<a href="http://support.math.arizona.edu/linux/remotebackground.php#cmd_amp" class="postlink">if you log out, your background task might get killed automatically</a>).. Just some sugestions ;)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5939">Adrenalin</a> — Sun Apr 24, 2005 2:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-23T06:39:35-04:00</updated>

		<published>2005-04-23T06:39:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48463#p48463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48463#p48463"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48463#p48463"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>NAME       nohup - run a command immune to hangups, with output to a non-ttySYNOPSIS       nohup COMMAND [ARG]...       nohup OPTIONDESCRIPTION       Run COMMAND, ignoring hangup signals.       --help display this help and exit       --version              output version information and exit</code></pre></div>what was the signal hangup (kill -s SIGHUP &lt;pid&gt;" to do with a prozess causing a blocking behavior? I somehow doubt the prozess causes the stuck because it recieves the signal hangup <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Apr 23, 2005 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Adrenalin]]></name></author>
		<updated>2005-04-23T04:32:08-04:00</updated>

		<published>2005-04-23T04:32:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48457#p48457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48457#p48457"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48457#p48457"><![CDATA[
I'm not sure..<br>I think nohup should do the job..<br><br><span style="color:green">catch {exec sudo su Fz -c "cd $mydir/psybnc;</span><span style="color:blue">nohup</span><span style="color:green"> ./psybnc"} error</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5939">Adrenalin</a> — Sat Apr 23, 2005 4:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-18T15:50:30-04:00</updated>

		<published>2005-04-18T15:50:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48279#p48279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48279#p48279"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48279#p48279"><![CDATA[
The comany's owner is going to make a bash command on the shell, so all I have to exec is the command user and pass. That should fix the problem. Thanx  <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=3085">Sir_Fz</a> — Mon Apr 18, 2005 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T15:37:51-04:00</updated>

		<published>2005-04-18T15:37:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48276#p48276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48276#p48276"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48276#p48276"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>catch {set this [set yo [open "|sudo su Fz -c "cd $mydir/psybnc;./psybnc"]][close $yo]} error</code></pre></div></div></blockquote>i hope it is<br>[open "|sudo su Fz -c "cd $mydir/psybnc;./psybnc""]<br>the code above would be missing 1 close quote ^^<br><br>but besides this... very strange. If you believe the sudden close could cause the chield termination, you could try to "softly" close it via:<br>fconfigure $yo -blocking 0<br>fileevent $yo readable "close $yo"<br>but probably the error occurs while "open" is execute, so I think it would be unlogical to help ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 18, 2005 3:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-18T15:21:16-04:00</updated>

		<published>2005-04-18T15:21:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48275#p48275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48275#p48275"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48275#p48275"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>catch {set this [set yo [open "|sudo su Fz -c \"cd $mydir/psybnc;./psybnc\"]][close $yo]} error</code></pre></div>returns "child process exited abnormally" in error and will not do the job.<div class="codebox"><p>Code: </p><pre><code>catch {exec sudo su Fz -c "cd $mydir/psybnc;./psybnc"} error</code></pre></div>does the job, but the bot freezes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 18, 2005 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-18T15:06:44-04:00</updated>

		<published>2005-04-18T15:06:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48270#p48270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48270#p48270"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48270#p48270"><![CDATA[
as said, to avoid freezing you have to use the non-blocking open. exec will always be in blocking mode.<br>you can addionally use catch {open ...} to ignore any returned errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 18, 2005 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-18T14:56:41-04:00</updated>

		<published>2005-04-18T14:56:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48268#p48268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48268#p48268"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48268#p48268"><![CDATA[
I've managed to find the proper command, but now my problem is that using <strong class="text-strong">open</strong> I get the following error: <blockquote class="uncited"><div>child process exited abnormally</div></blockquote>while using exec, the command works but the bot freezes. Any ideas on how to handle this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 18, 2005 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-17T16:51:12-04:00</updated>

		<published>2005-04-17T16:51:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48221#p48221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48221#p48221"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48221#p48221"><![CDATA[
<blockquote class="uncited"><div>I noticed that the command I'm issuing isn't correct, I tried 'pwd' it gave the directory the bot's in nomatter what user I specify. So, until I figure out which shell command to use, we'll see if it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>thats only natural, because the cd command in your exec/open line only changes the path for the current instance of bash (or better sudo in this case). thats why I suggested to really change the bots current directory <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-17T16:08:40-04:00</updated>

		<published>2005-04-17T16:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48220#p48220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48220#p48220"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48220#p48220"><![CDATA[
I noticed that the command I'm issuing isn't correct, I tried 'pwd' it gave the directory the bot's in nomatter what user I specify. So, until I figure out which shell command to use, we'll see if it works <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=3085">Sir_Fz</a> — Sun Apr 17, 2005 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jsilvestre]]></name></author>
		<updated>2005-04-17T15:42:43-04:00</updated>

		<published>2005-04-17T15:42:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48218#p48218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48218#p48218"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48218#p48218"><![CDATA[
Try:<br><br>.tcl exec sudo su Fz -c "killall -9 psybnc &amp;&amp; cd ../psybnc &amp;&amp; ./psybnc"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6034">jsilvestre</a> — Sun Apr 17, 2005 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-17T15:15:25-04:00</updated>

		<published>2005-04-17T15:15:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48217#p48217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48217#p48217"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48217#p48217"><![CDATA[
i cant really tell you why, but you could try to split the killall and ./psybnc into 2 open queries and use the cd tcl command to change the dir (better change it back afterwards with the backup made by pwd ^^), would be probably slower, but it would at least track down the error source, if still doesnt want to work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 3:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-17T14:29:49-04:00</updated>

		<published>2005-04-17T14:29:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48211#p48211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48211#p48211"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48211#p48211"><![CDATA[
tried:<blockquote class="uncited"><div>.tcl set this [set thisis [open "|sudo su Fz -c \"killall -9 psybnc;cd ../psybnc; ./psybnc\""]][close $thisis]</div></blockquote>This only killed my psybnc but didn't restart it. The bot didn't freeze though. What's the reason behind this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Apr 17, 2005 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-17T14:14:42-04:00</updated>

		<published>2005-04-17T14:14:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48210#p48210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48210#p48210"/>
		<title type="html"><![CDATA[Bot freezes after an exec]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48210#p48210"><![CDATA[
hmm, probably the opened console doesnt close when psybnc switchs to background. haev you tried to use open | instead and just close the open console forcefully? Can't garantue it won't leave shadow consoles running somewhere in the memory ^-^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 17, 2005 2:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
