Re: php script run by cron job

From: Date: Fri, 01 Oct 2004 10:23:32 +0000
Subject: Re: php script run by cron job
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198388@lists.php.net to get a copy of this message
* and then Merlin declared.... > Hi there, > > I already managed it to run a php script by cron, but now I cant remember > the exact syntax. Somehow it does not work. /var/log/messages tells me that > cron has called the line, but it never runs. I did try to run the line > without cron and it works. > > Here is the how I did it: > 14 8 * * * root /usr/local/bin/php /home/www/cron/statistics.php No, but then im no cron expert either ;-) Whenever i need to do a cron job i refer to this: http://www.tech-geeks.org/contrib/mdrone/cron&crontab-howto.htm If the crontab line is executing but the script aint running try this: 14 8 * * * root php -q /home/www/cron/statistics.php -- Nick W

« previous php.general (#198388) next »