RE: [PHP] cron job for php not working
| From: | Jay Blanchard | Date: | Thu, 20 May 2004 15:35:41 +0000 |
| Subject: | RE: [PHP] cron job for php not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186586@lists.php.net to get a copy of this message | ||
[snip]
I am trying to install following cron job:
0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php
The script works, if I run this "php /home..." line manually it works
out, but
it does not automaticaly at 6 am as supposed.
I do also see in /var/log/messages that the cron job has happened at
that time,
but the file did not generate the emails like it supposed to.
[/snip]
At the command line type "which php" and it will return the full path to
php. Modify your line in the crontab with the full path...
0 6 * * * /usr/local/bin/php
/home/www/project/app_cron/follow_up_new_members.php