It is man's ability to remember that sets us apart, we are the only species concerned with the past. Our memories give us voice, to bear witness to history so that others might learn, so they might celebrate our triumph and be warned of our failures ...

Executing Cron Job in CakePHP

Filed Under (PHP) by Abhishek Jain on 29-03-2010

Tagged Under : , ,

After going through a number of ways to execute a cron job in CakePHP ..

The option below seemed to be the simplest and easiest to execute.
However this would work only on a linux / unix machine and requires lynx be installed in your machine.

lynx –dump http://www.your_domain.com/controller/action/ >/dev/null

So for a cron job:

*/5 * * * * lynx –dump http://www.your_domain.com/controller/action/ > /dev/null

Useful links related to Lynx:

http://en.wikipedia.org/wiki/Lynx_(web_browser)

http://tips.webdesign10.com/general/lynx-browser

Subscribe to Rss Feed : Rss