Controlling Magento from the Command Line
I’ve found a dire need to run certain Magento functions from the command line. Firstly, it’s not practical to refresh your product flat tables from a web browser, when A. The browser will time out before it completes and B. sometimes you accidentally close your browser window.
1. Refresh Magento Caches from the Command Line (or a cron job)
The first command line script you’ll no doubt want to write is one that allows you to refresh caches from the command line. Edmonds has written just such a script, and has kindly shared the source code…
http://www.edmondscommerce.co.uk/blog/magento/magento-bulk-cache-index-update-script/
