How To Call Url With Yiic

I have an action that prints "Hello World":


public function actionStart()

{

    echo 'Hello World';

}



I will to run a cron job that calls this action every minute.

How I can do this with yiic ?

take a look at this

http://www.yiiframework.com/wiki/91/implementing-cron-jobs-with-yii/

UPDATE:

I create console app. I have cron.php inside index.php:


<?php

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


// including Yii

require_once('framework/yii.php');


// we'll use a separate config file

$configFile='protected/config/c.php';


// creating and running console application

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

and config/c.php:


<?php

return array(

    // This path may be different. You can probably get it from `config/main.php`.

    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',

    'name'=>'Cron',


    'preload'=>array('log'),


    'import'=>array(

        'application.models.*',

        'application.components.*',

    ),

    // We'll log cron messages to the separate files

    'components'=>array(

        'log'=>array(

            'class'=>'CLogRouter',

            'routes'=>array(

                array(

                    'class'=>'CFileLogRoute',

                    'logFile'=>'cron.log',

                    'levels'=>'error, warning',

                ),

                array(

                    'class'=>'CFileLogRoute',

                    'logFile'=>'cron_trace.log',

                    'levels'=>'trace',

                ),

            ),

        ),


        // Your DB connection

        'db'=>array(

            'class'=>'CDbConnection',

            // …

        ),

    ),

);



and protected/commands/MyCommand.php:


<?php

class MyCommand extends CConsoleCommand

{

    public function run($args)

    {

        $logs = Log::model()->findAll();

        print_r($logs);

        die();

    }

}



when I run this:


$ ./protected/yiic my

I got this error: