exec.php 440 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");
	}
	if (isset($_POST["dmprinter"])) {
		$resultat = system("sudo ../cgi-bin/test_impr.sh");
	}
	echo "</p></body></html>";
?>