that&#39;s a very insecure way to start gameservers :/<div><br></div><div><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 3:55 PM,  <span dir="ltr">&lt;<a href="mailto:b.m.schiltmans@planet.nl">b.m.schiltmans@planet.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div>


<p><font size="2">Sound like a problem with uninitialized (system)variables. When a command is started through php, it doesn&#39;t load your profile and therefor things like your path are not set. Try including paths on all commands, so /usr/bin/screen instead of just screen.<br>

<br>
Hope that helps.<br>
Grtz<br>
Bram<br>
<br>
<br>
-----Oorspronkelijk bericht-----<br>
Van: Taraman [<a href="mailto:Taraman@gmx.de" target="_blank">mailto:Taraman@gmx.de</a>]<br>
Verzonden: wo 9-12-2009 13:54<br>
Aan: <a href="mailto:cod@icculus.org" target="_blank">cod@icculus.org</a><br>
Onderwerp: [cod] Start COD4 Linux Dedicated via Webinterface</font></p><font size="2"><div><div></div><div class="h5"><br>
<br>
Hi,<br>
<br>
I&#39;m just programming a Webinterface for our LAN-server.<br>
My problem is, that the cod4 server does not start via the Webinterface.<br>
<br>
I have a Shell-script called gameserver.sh that starts the different<br>
servers via &quot;/somedir/gameserver.sh cod4 start&quot;<br>
This script works fine when used from a terminal - also if called from<br>
different directories. The Server itself is then running like a charm.<br>
The Script basically changes the directory to the game directory via &quot;cd<br>
/home/me/cod4&quot; and then launches the server with Screen -dmS<br>
<br>
In the Webinterface the script is called by PHP with<br>
&quot;System(&#39;/home/me/gameserver.sh cod4 start&#39;, $status);&quot;<br>
With this the Script says &quot;Server Started&quot; and the program is launched,<br>
but the process dies again immediately.<br>
<br>
I have a hard time debugging the error, because I don&#39;t get any error<br>
messages. The server does not live long enough to write a log and the<br>
PHP System command does not give me any useful output (I also tried to<br>
start the server directly).<br>
<br>
Does anyone have an Idea, what the problem is, or how I can get useful<br>
error Information?<br>
<br>
Taraman<br>
<br>
_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org" target="_blank">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a><br>
<br>
</div></div></font>
<p></p>

</div>
<br>_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a><br>
<br></blockquote></div><br></div>