You are here: Launch recording from PHP « PHP Programming Language « IT news, forums, messages
Launch recording from PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация