content for html-file:
<html>
<body>
<?php
if ($_GET['run']) {
# This code will run if ?run=true is set.
exec("sudo /home/pi/kill.sh", $output2);
}
?>
<!-- This link will add ?run=true to your URL, myfilename.php?run=true -->
<a href="?run=true"><img src="stop-button.png" width="200" 0height="160" border="0" alt="stop"></a>
</body>
</html>
content for shell script:
sudo killall capture_endless
Keine Kommentare:
Kommentar veröffentlichen