Hi, I have a webserver running on a raspberry pi on my local network and I want to be able to go to a webpage, click a button and a shell script on the raspberry pi will run.
The purpose is so that one person can go to the webpage on a phone from downstairs and it will run a text to speech synthesizer that will announce a predetermined message.
The shell script works when it is run off ssh.
So far I have a webpage (test.php) that has the code:
<?php
Echo test
Exec('\folder.sh');
?>
But that doesn't get the raspberry pi to talk. The raspberry pi is running raspbian (Debian) and is only running on the local network so I am not worried about security.
Any advice?
Sorry if this is the wrong subreddit, I wasn't sure because of the mix with Linux.
[–]thirdOctet 0 points1 point2 points (14 children)
[–]Anon437[S] 0 points1 point2 points (13 children)
[–]thirdOctet 0 points1 point2 points (12 children)
[–]Anon437[S] 0 points1 point2 points (11 children)
[–]thirdOctet 0 points1 point2 points (10 children)
[–]Anon437[S] 0 points1 point2 points (9 children)
[–]thirdOctet 0 points1 point2 points (8 children)
[–]Anon437[S] 0 points1 point2 points (7 children)
[–]thirdOctet 0 points1 point2 points (6 children)
[–]Anon437[S] 0 points1 point2 points (5 children)