Posted by Steve on 10/18/05 20:24
> 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.
Set up a cron job to periodically run a script that will perform the
action you want. The script should check the database for any work to
do at this time, and if there is nothing to do then it just exits.
Adjust the frequency of the cron job so that it matches the accuracy of
recording start time you require - say, every 5 minutes.
This way, no-one else has to be given permissions to add "at" commands
or mess with the hardware.
---
Steve
Navigation:
[Reply to this message]
|