Re: CRON?
| From: | Tom Rogers | Date: | Sun, 26 Jan 2003 04:07:13 +0000 |
| Subject: | Re: CRON? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133152@lists.php.net to get a copy of this message | ||
Hi,
Sunday, January 26, 2003, 7:58:18 AM, you wrote:
N> Does anyone have a PHP script to enter cron jobs? I have a limited control
N> panel (ensim) that doesn't have anyway to do cron, and I don't know how to
N> do it at the command line yet. Anyone have a good tutorial or a PHP script
N> to do this?
N> Thanks!
If you want to change cron jobs for the web server that is easy just
exec('crontab '.$newcronlist)
That should replace the current cron jobs with the new ones.
If you want to manipulate other users that is a whole new can o worms that is
probably full of security issues. Then you would need a root cron job to parse
an external file owned by the web server that it queries for any updates that
are needed and does them for you.
--
regards,
Tom