liskji00 0 Odesláno: 10. Leden, 2011 Share Odesláno: 10. Leden, 2011 Skusam delat administraci a potrebuji zapinani proste mam udelani prikaz v start.sh normalne to jde cez puttynu no a ted potrebuji aby cez zapinani.php aby jse to dalo zapnut cez web potrebuji "help" vopred dik dik dik Link to comment Share on other sites More sharing options...
0 Danny 37 Odesláno: 10. Leden, 2011 Share Odesláno: 10. Leden, 2011 na akú hru bi malo bi´t to ./start.sh? lebo alebo proste načo Link to comment Share on other sites More sharing options...
0 liskji00 0 Odesláno: 10. Leden, 2011 Author Share Odesláno: 10. Leden, 2011 samp omg ale to je jedno asi ne? protoze ja potrebuji jenom prikaz spoustit cez web ten ./start.sh jednouse trebarz <?php exec('/root/samp03/start.sh'); ?> nevim jak omg a chcem to jenom pros .sh ! Link to comment Share on other sites More sharing options...
0 cniry 0 Odesláno: 10. Leden, 2011 Share Odesláno: 10. Leden, 2011 musis na konec dat &. To znamena, ze php ho zapne a nebude cekat az zkonci. <?php exec("/root/samp03/samp03c &"); Link to comment Share on other sites More sharing options...
0 liskji00 0 Odesláno: 10. Leden, 2011 Author Share Odesláno: 10. Leden, 2011 a nejde to -- pon 10. led 2011 17:56:05 -- exec("/root/samp03/; ./start.sh > /dev/null &"); skousal som to takhle a taky ani tvuj nejde ani ten Link to comment Share on other sites More sharing options...
0 cniry 0 Odesláno: 10. Leden, 2011 Share Odesláno: 10. Leden, 2011 beztak nemas nastavene spravne prava u souboru Link to comment Share on other sites More sharing options...
0 liskji00 0 Odesláno: 10. Leden, 2011 Author Share Odesláno: 10. Leden, 2011 mam 777 exec("/root/samp03/start.sh &"); obsah start.sh #!/bin/bash export GTA_PATH=/root/samp03 cd $GTA_PATH while [ true ]; do cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt rm {$GTA_PATH}/server_log.txt touch {$GTA_PATH}/server_log.txt ./samp03svr done Link to comment Share on other sites More sharing options...
0 Dregs 2 Odesláno: 11. Leden, 2011 Share Odesláno: 11. Leden, 2011 Proč to děláš složite přes start.sh ? Použíj, jak tu navrhují PHP <?php exec("/root/samp03/samp03c &"); ?> Pokud chceš pres start.sh Do start.sh cd /root/samp03 nano start.sh #!/bin/bash ./samp03c & ./announce Pak ho nezapomen nastavit chmod na 777 Link to comment Share on other sites More sharing options...
Dotaz
liskji00 0
Skusam delat administraci a potrebuji zapinani
proste mam udelani prikaz v start.sh normalne to jde cez puttynu
no a ted potrebuji aby cez zapinani.php aby jse to dalo zapnut cez web potrebuji "help"
vopred dik dik dik
Link to comment
Share on other sites
7 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now