You are here: Re: Cron Jobs « PHP Programming Language « IT news, forums, messages
Re: Cron Jobs

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-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация