php as cron
| From: | Jay Paulson | Date: | Mon, 10 Dec 2001 17:54:22 +0000 |
| Subject: | php as cron | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77211@lists.php.net to get a copy of this message | ||
I'm trying to test php running as a cron job and I have installed php as a CGI in
/usr/local/bin and I have edited my crontab file to call a php file every two minutes. However,
it's not working and I was wondering if you all would know what's going on. Anyway,
here's how I have things set up.
crontab file:
*/2 * * * * php /home/crontest.php > /dev/null
crontest.php:
#!/usr/local/bin/php -q
<?php
mail("email@email.com","cron test", "testing",NULL);
?>
email I'm receiving with error:
Subject: Cron <> php /home/crontest.php > /dev/null
Body: /bin/sh: php: command not found
thanks for any help.