exec.php
348 Bytes
<?php
echo "<html><body><p>";
if (isset($_POST["button"])) {
$resultat = system("sudo python /var/www/cgi-bin/thread_dd.py");
}
if (isset($_POST["live"])) {
$resultat = system("sudo python /var/www/cgi-bin/live.py");
}
if (isset($_POST["modem"])) {
$resultat = system("sudo ../cgi-bin/test_modem.sh");
}
echo "</p></body></html>";
?>