tags:

views:

239

answers:

1

Hi All,

I have installed XAMPP server on my Mac OS, how to setup a cron job on it?

My requirement is that i want to call a php script at regular intervals .

Thanks

+3  A: 

there is a good article here how to setup cron job on Mac OS X

you would have to edit a textfile(crontabtaskfile)and add for example

0      */1     *       *       *      php path/to/yourphp.php

this would give you a task running every hour (1:00, 2:00) .

and use crontab crontabtaskfile

RageZ
It may be necessary to specify the path to 'php'. I'm using XAMPP for *WinXP* and php.exe is NOT in the PATH.
pavium