Re: php script run by cron job

From: 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:
Here is the how I did it:
14 8 * * *      root  /usr/local/bin/php /home/www/cron/statistics.php
Does anybody see an error in this?
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.
Thank you that solved the problem Merlin

« previous php.general (#198482) next »