Re: php script run by cron job
| From: | Merlin | Date: | Sat, 02 Oct 2004 06:13:52 +0000 |
| Subject: | Re: php script run by cron job | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198482@lists.php.net to get a copy of this message | ||
Andrew Kreps wrote:
On Fri, 01 Oct 2004 08:18:55 +0200, Merlin <news.groups@web.de> wrote:Thank you that solved the problem MerlinHere is the how I did it:I'm not familiar with a crontab format that allows you to specify a username as you have there. If you'd like the process to run as root, login as root, do a crontab -e, and paste this in there: 14 8 * * * /usr/local/bin/php /home/www/cron/statistics.php see if that works for you.14 8 * * * root /usr/local/bin/php /home/www/cron/statistics.phpDoes anybody see an error in this?