[solved] crontab didn't run the schedule

Hi All,

i want to ask why my schedule in crontab didn’t work, if i run it manually, it worked.

i have this console.php in myapp/console.php :


<?php

 // remove the following line when in production mode

defined('YII_DEBUG') or define('YII_DEBUG',true);


$yii=dirname(__FILE__).'\..\..\yii\framework\yii.php';


$configFile=dirname(__FILE__).'\protected\config\console.php';

  

require_once($yii);

Yii::createConsoleApplication($configFile)->run();



i write this in command line when i run it manually (and it worked) :


1. cd /project/program/web/myapp/protected

      2. /usr/local/php/bin/php yiic activitycleaner

i write this in command line when i want it schedule (and it didnt worked) :


*/5 * * * * /usr/local/php/bin/php /project/program/web/myapp/console.php activitycleaner

did i miss something?

thanks

already solved,just change the path into full path in $yii and $configfile