Page 1 of 1

Start an linux app. from web?!

Posted: Sun Oct 11, 2009 6:00 pm
by trooper
Hey!
I was hopin' the some of you ppl with some knowledge of batch (linux) & php, kould help me :)

My "dream" is to make a script that gives ppl the opportunity to book gameserver trought SMS.
I have made the script that gets the token/kode from the gateway.

Now that that part is finito, the hard part comes....
Something alĂ  this is supposed to happen if the kode is correct typed in on my page:
* Get sv_password & rcon password from the page (this textline is supposed to go in to my config.php on my linux-server- before my server starts)
* The GAMSESERVER is going start up (HLDS).

More is supposed to happen, but i'll take it l8r.

How i'm supposed to do this, I don't know. But it can't be that hard?? =)

[sub]NB: I think this will require that i contact the gameserver from the webserver.?

For thoes of you that dont know how to start the server is "the batch way":

Code: Select all

cd /usr/hlds (goes to the server location)
./hlds_run -game cstrike -autoupdate +maxplayers 11 +map de_dust2
[/sub]

The server config.cfg is located in /usr/hlds/cstrike/


Please help the norwegian man, that really is beginning to like this forum :-]

Re: Start an linux app. from web?!

Posted: Thu Oct 15, 2009 11:50 am
by trooper
No one? :|