Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> odpalanie sh przez php
kajtek2008
post
Post #1





Grupa: Zarejestrowani
Postów: 69
Pomógł: 0
Dołączył: 15.08.2009
Skąd: Nowy Sącz

Ostrzeżenie: (0%)
-----


witam mam problem z odpaleniem sh przez php

wyskakuje taki bład

There is a screen on: 13852.hlds_2 (08/15/09 15:09:21) (Detached) 1 Socket in /var/run/screen/S-www-data. start

w index.php mam


  1. <form method=post action='start.php' target='hide'><input onclick="alert('Serwer został uruchomiony (IMG:style_emoticons/default/biggrin.gif) ');" type=submit value='Uruchom serwer' /></form></input>



w start.php mam
  1. <?php
  2. system("sh /var/www/hlds_2/start.sh");
  3. ?>



a w start.sh mam

  1. #!/bin/bash
  2. cd /var/www/hlds_2
  3. screen -m -d -S hlds_2 ./hlds_run -game cstrike +ip 87.98.178.96 +port 27017 +maxplayers 12 +map de_dust2 +exec +server.cfg
  4. screen -wipe
  5. echo "start"

Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.12.2025 - 16:59