Protected/yiic Problem

hi , it’s my first aproach to cron jobs.

My problem is that i want to test a command in console with yiic from application and it runs yiic fro framework.


php ./yiic.php

is the only way it runs but i have


The following commands are available:

 - message

 - migrate

 - shell

 - webapp



and i need to see


The following commands are available:

-test

command


class TestCommand extends CConsoleCommand {


    /**

     * @cron 2 * * * *

     */

    public function actionExample1() {


        $reader = Reserva::model()->findAll();

        foreach ($reader as $row) {

            $row->reserva_state = 4;

            $row->save(false);

            

        }

    }


}

by the way i’musing http://www.yiiframework.com/extension/phpdoc-crontab/