Re: php script run by cron job

From: Date: Sat, 02 Oct 2004 00:48:02 +0000
Subject: Re: php script run by cron job
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198472@lists.php.net to get a copy of this message
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.

« previous php.general (#198472) next »