I have done it in different way,
Please see the steps, it may helpful for others..
Cron/Shell Using Cakephp Framework Structure:
create
F:websitesprojectnameappvendorsshellsfilename.php
class ClassName extends Shell {
//var $uses = array('Post'); //name of Model
//Main function runs always when shell executes
function main() {
mail("[email protected]","Test","Test");
}
}
2.set 754 permission to F:websitesprojectnamecakeconsolecake
Set cron job as /home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" ClassName >/dev/null 2>&1
/dev/null 2>&1: for Suppressing warning/error/msg from server
Thank you
Nidhin
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…