![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 183 Pomógł: 0 Dołączył: 18.05.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam
mam skrypt do restartu serwera napisany w bashu np restart.sh. Chciałbym go uruchomić za pomocą php ale nie bardzo wiem jak sie za to zabrać. Czekam na wasze propozycje |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 183 Pomógł: 0 Dołączył: 18.05.2009 Ostrzeżenie: (0%) ![]() ![]() |
Dzieki
Zrobiłem coś takiego: http://pastebin.pl/9660 A plik test.sh wygląda tak: Kod #!/bin/bash kill -9 `ps auxw | grep hlds_run | grep -v grep | grep -v SCREEN | awk '{print $2}'` cd /home/hlds screen -m -d -S hlds ./hlds_run -game cstrike -master +ip 94.76.254.248 +port 27015 +maxplayers 20 +map de_dust2 +exec server.cfg screen -wipe Niestety wyświetla się tylko: Cytat Start serwera
127 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 05:22 |