Category Covered

cron job linux

I have a project on cakephp and there is a function named "myfunction" under "mycontroller". So i want to show you now how to setup cron job on linux environment for a url on cakephp project.

For example the url "http://mydomain.com/mycontroller/myaction/myparams" which i want to run through the cron job on linux cpanel.

Follow the step:

  • Open your cpanel
  • On left hand side you will see a find box. There search by "cron jobs"
  • Click on the cron job Icon
  • Now you can see the following setup
    • You can setup cron job manually
    • You can choose job schedule from listed drop down.

Cron job schedule choose from given drop down list

 

Manual crob job setup

 

 On Command Field write your url like lynx -dump "http://mydomain.com/mycontroller/myaction/myparams"