>I got a server application in a LAMP environment doing batch tasks. A
>cronjob serves as a regular trigger, a metronom. The trigged
>processcollects a number of pending jobs to be run and typically creates a
>number of additional jobs to be run in future. The type of created jobs,
>their parameters and everything can be configured in the application.
>In addition I'd like to configure and control the triggering cron job itself
>from within the application. Since the web server must not restart the cron
>job I can't simply rewrite the crontab. The changes would only become
>active after the next reboot, probably some three years in the future
>(LAMP :-) ).
>What has to be done is to manipulate the crontab of the web server in a way
>that the crontab rereads this craontab. crontab -e does exactly this, upon
>storing the file the crontab is triggered to read it. However the commmand
>requires an editor as argument, this editor is used for the manipulation.
>Now I don't really want to control some editor.
>I guess I have to specify some process as 'editor' that has access to the
>application settings and can open the file. Looks like a lynx or wget call
>to a php url, the script should use fopen to open the crontab...
>Maybe someone has a better idea or even a solution?