How to run shell commands within python

limodou limodou at gmail.com
Thu Feb 16 02:27:18 EST 2006


On 15 Feb 2006 23:21:09 -0800, fileexit <mayyash at gmail.com> wrote:
> How can I execute shell commands from within python.  Specifically, I
> am looking for something like the shell "cat".  But this also made me
> wonder how to execute shell commands anyway, just if i needed to do
> that in the future.
>

You can use os.system() or os.popen(), etc.


--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit



More information about the Python-list mailing list