Emperor
07-08-2005, 08:28 PM
Hi guys,
If I type this in the shell it works fine:
php mysite.com/www/cron/test.php
...but if I have this in my crontab nothing happens:
* * * * * php mysite.com/www/cron/test.php
Is that the way to execute it every minute ? All it does is increment a value in a database for testing purposes.
I'm pretty sure the path in the crontab is wrong but I don't know what to set it to. Also, in the .php file I had an include that didn't work (not found.)
How do I get the paths right ? Today is the first time I used a Unix shell.
Thanks.
If I type this in the shell it works fine:
php mysite.com/www/cron/test.php
...but if I have this in my crontab nothing happens:
* * * * * php mysite.com/www/cron/test.php
Is that the way to execute it every minute ? All it does is increment a value in a database for testing purposes.
I'm pretty sure the path in the crontab is wrong but I don't know what to set it to. Also, in the .php file I had an include that didn't work (not found.)
How do I get the paths right ? Today is the first time I used a Unix shell.
Thanks.