<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [cod] Start COD4 Linux Dedicated via Webinterface</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sound like a problem with uninitialized (system)variables. When a command is started through php, it doesn'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">mailto:Taraman@gmx.de</A>]<BR>
Verzonden: wo 9-12-2009 13:54<BR>
Aan: cod@icculus.org<BR>
Onderwerp: [cod] Start COD4 Linux Dedicated via Webinterface<BR>
<BR>
Hi,<BR>
<BR>
I'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('/home/me/gameserver.sh cod4 start', $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'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>
cod@icculus.org<BR>
<A HREF="http://icculus.org/mailman/listinfo/cod">http://icculus.org/mailman/listinfo/cod</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>