Posted by David Haynes on 03/19/06 13:22
Kim André Akerø wrote:
> Ian Collins wrote:
>
>> mysitesucks@gmail.com wrote:
>>> how can i make my php script run every 6 hours using cron jobs with
>>> php only?
>>>
>> Same as any other cron job.
>>
>> 0 0,6,12,18 * * * <wherever your PHP is> <your script>
>
> Or just:
>
> 0 */6 * * * <path to PHP> <path to script>
>
> Oh, and remember to use full pathnames in the script when running it
> from cron (unless you're fetching it via the web server).
>
RE: */6 notation
Not every *nix supports this. Make sure to check it out first.
-david-
[Back to original message]
|