How To Call Controller/action In Console Command

How can I call controller from console command? Currently I am doing like this but it not working



I am getting the following error

exception ‘CException’ with message ‘Property “CConsoleApplication.user” is not defined.’ in


check this

and this one

I have tried all those methods mentioned in stackoverflow but nothing is working.

check also