Hallo,
Bezig met een webpanel probleem nu met PHP en terminal.
Dit is mijn index.php
Mijn vraag is nu, hoezo werkt deze screen niet ? Volgens mij zie ik iets over het hoofd.Code:<?php // Random rcon pass $rcon = substr( md5(mt_rand(10000, 99999)) , 2, 5 ); // Echo the randomized rcon echo 'Generated RCON Passwd: <strong>'.$rcon.'</strong>'.PHP_EOL; // Set the command $cmd = 'sudo screen -a -m -d -s /opt/hlserver/srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -autoupdate -systickrate 500 -tickrate 100 -ip getal-port 27015" ; echo '<!-- '.$cmd.' -->'; shell_exec( $cmd ); ~
Als top vervang werkt het wel!

Likes:


Quote