cron.php
Thufir
hawat.thufir at gmail.com
Fri May 11 08:43:49 UTC 2012
On Sun, 06 May 2012 16:56:59 +0200, Patrick Asselman wrote:
> On Sun, 6 May 2012 07:26:16 -0700, Thufir wrote:
>> is the a particular "cron.php" which manages php cron jobs or similar?
>> Is there a particular syntax for PHP cron, something like:
>>
>>
>> 1 * * * * /home/thufir/foo.php 1
>>
>>
>> or do you need a different syntax to make that run?
>>
>>
>>
>> thanks,
>>
>> Thufir
>
> A .php file is not executable by itself. You may want to do
> "/usr/bin/php -f /home/thufir/foo.php". Best to try that manually at
> first, before putting it in the crontab, just to see if it works. (If
> it is a php file that is supposed to be accessed via the web server, it
> will probably not work.)
>
> Best regards,
> Patrick Asselman
Thanks everyone, got it sorted.
More information about the ubuntu-users
mailing list