Executing Shell Commands - PHP or Python?

Posted by chadpeppers on Programmers See other posts from Programmers or by chadpeppers
Published on 2013-10-23T03:36:07Z Indexed on 2013/10/23 4:09 UTC
Read the original article Hit count: 357

Filed under:
|

I know basically two languages: Python and PHP. I am primarily a Drupal developer. I have a great idea in creating a command line program that will help some of the mundane tasks and bring my efficiency up quite a bit. The concept is that of a complete console program, almost like the days when I learned C++ using stdin/out. I want to use this came concept but for this program. I am going to be executing shell commands (mainly drush commands, if you are familiar with drush its drupals way of doing tasks like installing drupal, clearing cache, and other things). I am also wanting to do a database and save/execute through multiple objects and site profiles.

My general question is this. Which language would be better suited to handle command line code? Drupal is written in PHP so I am leaned more towards that,but I know python seems to handle console programming a bit easier. Any help would be great!

© Programmers or respective owner

Related posts about php

Related posts about python