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

	<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>2003-10-14T15:48:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-14T15:48:57-04:00</updated>

		<published>2003-10-14T15:48:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28491#p28491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28491#p28491"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28491#p28491"><![CDATA[
<blockquote class="uncited"><div>The script does not start, but only gives the following error: <br>Tcl error [notify]: child process exited abnormally  </div></blockquote>I think it is because the TCL does not support execution of programs with exit code non zero.  When you are finishing your execution, the php script is returning something that is not apear to be 0, regrettably TCL is expecting 0 and gives you: Tcl error [notify]: child process exited abnormally .<br><br>The easiest way to avoid it is to use catch procedure. Example:<br>catch { exec  .... } error_message. Now all error will go to variable error_mesage. <br>2nd example:<br><br>if {[catch {exec grep teste /etc/smb.con} error]} {<br>    puts "I got error: $error"<br>}<br><br>It should help you.<p>Statistics: Posted by Guest — Tue Oct 14, 2003 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-13T13:39:28-04:00</updated>

		<published>2003-10-13T13:39:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28418#p28418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28418#p28418"/>
		<title type="html"><![CDATA[Re: BEWARE]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28418#p28418"><![CDATA[
<blockquote class="uncited"><div>Use it carrefully, 'cuz if your php isn't well debugged, you may have a ghost process...<br>Try putting a timer (about 30s) wich halt the process (return 0?)</div></blockquote>could you give me an example how to do that?<p>Statistics: Posted by Guest — Mon Oct 13, 2003 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-10-13T13:37:26-04:00</updated>

		<published>2003-10-13T13:37:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28417#p28417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28417#p28417"/>
		<title type="html"><![CDATA[BEWARE]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28417#p28417"><![CDATA[
Use it carrefully, 'cuz if your php isn't well debugged, you may have a ghost process...<br>Try putting a timer (about 30s) wich halt the process (return 0?)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 13, 2003 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-13T10:45:52-04:00</updated>

		<published>2003-10-13T10:45:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28399#p28399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28399#p28399"/>
		<title type="html"><![CDATA[Re: starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28399#p28399"><![CDATA[
<blockquote class="uncited"><div>Do you try it with your eggdrop username? If no, verify the rights.</div></blockquote>yes, I was logged in with my eggdrop user<br><blockquote class="uncited"><div>And peharps you'd better try:<div class="codebox"><p>Code: </p><pre><code>exec /path/to/php /path/to/filename.php</code></pre></div></div></blockquote>I tried this already, but it didn't help<br><blockquote class="uncited"><div>If it's always bad, try using wget or lynx, as:<div class="codebox"><p>Code: </p><pre><code>exec lynx -preparsed 127.0.0.1/filename.php</code></pre></div></div></blockquote>great, that works  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>thank you very much<p>Statistics: Posted by Guest — Mon Oct 13, 2003 10:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-10-13T10:34:09-04:00</updated>

		<published>2003-10-13T10:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28397#p28397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28397#p28397"/>
		<title type="html"><![CDATA[Re: starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28397#p28397"><![CDATA[
<blockquote class="uncited"><div>When I call php /path/to/filename.php from the shell it works.</div></blockquote>Do you try it with your eggdrop username?<br>If no, verify the rights.<br>And peharps you'd better try:<div class="codebox"><p>Code: </p><pre><code>exec /path/to/php /path/to/filename.php</code></pre></div>If it's always bad, try using wget or lynx, as:<div class="codebox"><p>Code: </p><pre><code>exec lynx -preparsed 127.0.0.1/filename.php</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 13, 2003 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-13T09:30:04-04:00</updated>

		<published>2003-10-13T09:30:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28393#p28393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28393#p28393"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28393#p28393"><![CDATA[
<blockquote class="uncited"><div>what is your os ? i suppose linux ?</div></blockquote>yes. SuSE Linux 8.2<br><br><blockquote class="uncited"><div>so try -n mode and see if it works.</div></blockquote>i does not work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><blockquote class="uncited"><div>also why you wana use this php script ?</div></blockquote>because I have a ready php script and don't want to / cannot rewrite it in tcl<p>Statistics: Posted by Guest — Mon Oct 13, 2003 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-13T08:48:00-04:00</updated>

		<published>2003-10-13T08:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28387#p28387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28387#p28387"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28387#p28387"><![CDATA[
what is your os ? <br>i suppose linux ? or windows ? if its windows try -n on startup this will bring bot to forground, but you can install it as a service and run it as a system account and move it back to the back ground .. if you use linux witch you probably are useing try same if it works use screen to move it to back ground not sur on linux tho never executed files from an eggdrop with in linux but i gues its the same .. so try -n mode and see if it works. also why you wana use this php script ?<br><br>but you will need to set the path to your lib like<br><br>if you wana execute file thats in /sbin set path to /sbin/file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Oct 13, 2003 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-13T08:44:25-04:00</updated>

		<published>2003-10-13T08:44:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28386#p28386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28386#p28386"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28386#p28386"><![CDATA[
that does not help<p>Statistics: Posted by Guest — Mon Oct 13, 2003 8:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-13T08:33:39-04:00</updated>

		<published>2003-10-13T08:33:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28382#p28382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28382#p28382"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28382#p28382"><![CDATA[
maybe set the path of /your/lib/path/php ....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Oct 13, 2003 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-13T08:44:48-04:00</updated>

		<published>2003-10-13T07:48:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28376#p28376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28376#p28376"/>
		<title type="html"><![CDATA[starting php script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28376#p28376"><![CDATA[
Hi,<br><br>how can my tcl script start a php script?<br><br>I tried<br>exec php /path/to/filename.php<br><br>The script does not start, but only gives the following error:<br>Tcl error [notify]: child process exited abnormally<br><br>When I call php /path/to/filename.php from the shell it works.<br><br>Hope someone can help me.<br><br>bye,<br>bit<p>Statistics: Posted by Guest — Mon Oct 13, 2003 7:48 am</p><hr />
]]></content>
	</entry>
	</feed>
