I'm trying to make a small project with a server and a Raspberry Pi. I have almost everything done, the only thing I need is the following one:
I have a C program which works perfect with my raspberry if a call it from command line but I want it to be run when a button is clicked in my server.
So my question is, how can I run the C program from inside the CGI?
I was trying this INSIDE THE CGI FILE but with no succeed:
#!/bin/bash
./myCompiledCprogram