|
Posted by Jussi Rasku on 10/18/05 20:12
Hello,
I'm working on a small web-script that would allow me to remotely setup
recordings to my tv-tuner (on my linux box). The idea is simple, but I'm
unsure how to accomplish it.
The idea: Using PHP generated www-page user could set mencoder to start
recording at some specified time. The command is put to the crontab
using linux "at" command.
Problem is that I don't think it is an good idea to grant www-data user
(that runs apache/php process) to tinker with audio and video hardware.
Even worse idea is to grant www-user rights to use "at" command.
I use mysql database to store some recording information and thus I
could use mysql TRIGGER-functionality to put the recording command to
crontab, however at that case I should give mysql user video and audio
priviledges. Again - not so good.
Can anybody give an good advice how to do this wihtout dangering system
security?
yours,
Jussi Rasku
Navigation:
[Reply to this message]
|