running script from command line

I'm planning on using crontabs to run a php script daily. I created a second controller and added a special route, so if my path is <b>//localhost/ci/index.php/autoupdate</b> it will access the new class controller and run an update function. This works.

My issue is that I don't know how to do the same thing from the command line. I tried the following by adding autoupdate as an argument, but it did not work. The autoupdate controller works in the browser, so I know the controller is fine and its not some typo. Is this possible? Am I doing something wrong?

C:\>C:\wamp\bin\php\php5.3.8\php.exe -f C:\wamp\www\ci\index.php -- -autoupdate


check :

Note: it will help you to add "C:\wamp\bin\php\php5.3.8\" to the environment Path you can use php right a way without specifying the path again.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.