Reply to Re: Launch recording from PHP

Your name:

Reply:


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

[Back to original 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

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