On 06/15/11 12:36, Jean-Frangois SIMON wrote:
Hi,
I have a remote controlled machine which I manage by ssh and yet I'm in the
process of making up a small web page through which basic commands can be
passed.
I have no clear idea regarding how to design this, in the first place I
thought about a cgi script written in C which I did manage to have it say
"hello world" at the present time, but not yet much more.
There's not yet clear clues regarding how to make this peace of web
interface talk to the system and I would like to make it clean by means of
elegant way to deal with web page<-> system communication.
Any clue regarding the way it could be ?
Thanks,
Jean-Frangois
!DSPAM:4df8fc6181751664719687!
I did this for a server in a law office to allow the users to do things
like kill runaway print jobs and to restart the server. httpd was *not*
accessible from the internet by a rule in pf and was run as httpd -u
(un-chrooted). You can write CGIs as shell scripts--you just have to
send the correct headers at the beginning of the script. Use your
google-fu to figure those headers out.
If the jobs you need require more than simple shell scripts, you can use
php or perl. In the un-chrooted environment they will give you access
to *everything*.
Hope that helps!
Jeff