Contab Console With Centos

I have a example as in http://www.yiiframework.com/extension/yii-crontab/.

In centOs, i run a command "/usr/bin/php /var/www/html/cron/app/console.php myCron testCron" in command line is ok. but I insert to crontab with text "01 * * * * root /usr/bin/php /var/www/html/cron/app/console.php myCron testCron" is not run, and i have mail in root directory with content:

Error: Unknown action: testCron

Usage: /var/www/html/cron/app/console.php mycron <action>

Actions:

testCron

this mail as as I run the command on the command line is wrong action.

example command "/usr/bin/php /var/www/html/cron/app/console.php myCron testCro". i have a similar mail content

Error: Unknown action: testCro

Usage: /var/www/html/cron/app/console.php mycron <action>

Actions:

testCron

4898

cron-tab.jpg

help me.

I don’t think it’s related, but: Should that really run as root? :huh:

thank for rep. I run cron in /ext/crontab. “Should that really run as root?” i don’t understand.Can you tell me more.