I have referred http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line and created cron_dispatcher.php and placed it in the app folder.
I have return some test email function for the cron job to run in my users controller’s test method.
And i have created a Cron job in my web server’s control panel like
"/usr/bin/php/home4/enventur/public_html/pennystock/cron_dispatcher.php /users/test"
But its giving me an error as “No input file specified.”
Please help me, how to solve it ??
Thanks in Advance
I have done it in different way,
Please see the steps, it may helpful for others..
Cron/Shell Using Cakephp Framework Structure:
create
F:\websites\projectname\app\vendors\shells\filename.php2.set 754 permission to
F:\websites\projectname\cake\console\cakeSet cron job as
/home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" ClassName >/dev/null 2>&1Thank you
Nidhin