Re: [beagleboard] Control hardware from webserver

2014-02-12 Thread Janek
If the server is a localhost, both client and server can be on the same machine. See openROV for examples https://github.com/OpenROV On Wednesday, February 12, 2014 7:45:08 AM UTC+11, Jake Swensen wrote: I'm new to web applications as well, hence the question. Clarification question: When

Re: [beagleboard] Control hardware from webserver

2014-02-12 Thread liyaoshi
Nobody interest about CGI ? 2014-02-13 6:17 GMT+08:00 Janek ja...@bigpond.net.au: If the server is a localhost, both client and server can be on the same machine. See openROV for examples https://github.com/OpenROV On Wednesday, February 12, 2014 7:45:08 AM UTC+11, Jake Swensen wrote:

Re: [beagleboard] Control hardware from webserver

2014-02-11 Thread Jack Mitchell
On 10/02/14 21:34, William Hermans wrote: Jack, Ok perhaps I am missing something, and I by no means mean to be adversarial here. I am just curious, so If i am missing something please feel free to enlighten me. What is the difference between using setuid(0) and having a web socks app

Re: [beagleboard] Control hardware from webserver

2014-02-11 Thread William Hermans
*The web socket doesn't run the app, the app is always running, probably started as a daemon from the init system, and accepts messages from the web socket. Therefore there is no direct execution of a setuid binary from the web interface.* Yeah sorry. My failed attempt at shorthand speak. IPC app

Re: [beagleboard] Control hardware from webserver

2014-02-11 Thread Jake Swensen
I'm new to web applications as well, hence the question. Clarification question: When using the web sockets protocol, the client and server are running on two different pieces of hardware, correct? If so, that's great, because this is the general direction I am heading in with this exercise,

[beagleboard] Control hardware from webserver

2014-02-10 Thread jdswensen
OS Image: Ubuntu Precise 12.04.3 LTS I'm attempting to control LEDs from a webpage (and eventually other hardware from the device tree overlay). I've written a C program to toggle the onboard LED based on the arguments passed to it. This only works if you run it as root however. I've also

Re: [beagleboard] Control hardware from webserver

2014-02-10 Thread Jack Mitchell
On 07/02/14 21:28, jdswen...@gmail.com wrote: OS Image: Ubuntu Precise 12.04.3 LTS I'm attempting to control LEDs from a webpage (and eventually other hardware from the device tree overlay). I've written a C program to toggle the onboard LED based on the arguments passed to it. This only

Re: [beagleboard] Control hardware from webserver

2014-02-10 Thread William Hermans
Jack, Ok perhaps I am missing something, and I by no means mean to be adversarial here. I am just curious, so If i am missing something please feel free to enlighten me. What is the difference between using setuid(0) and having a web socks app running the app ? Here is my thinking. If you write

Re: [beagleboard] Control hardware from webserver

2014-02-10 Thread William Hermans
My idea was to actually set environment variables to specific values for different occasions, then have an app/service read the values of the variables periodically. Whatever that is worth to anyone else . . . On Mon, Feb 10, 2014 at 2:34 PM, William Hermans yyrk...@gmail.com wrote: Jack, Ok