IBM developerWorks have a new article by Roger McCoy on using PHP from command line. It is definitely a great alternative that I used personally so much to write alternative solution for shell scripts for almost anything. If you didn’t get the chance to meet the power of CLI PHP, this article might give you this push, while I think it will happen certainly with a real case application :

Give PHP a chance on the command-line interface, and you may find that it has become your new favorite shell-scripting tool. Worst-case scenario: It can save you some Web server migraines.