FAQ

Catherine Yang wrote:

Hi,

A question about how to execute a system command from python program. e.g.
in a python script, I need to run another program written in C++, and after
that come back to the same python program.

Is it the system module, and which function do I use to do this?
You can use the os.system() to execute a program accessible from your
path or specified explicitly:
import os
os.system('ls')
For more info on process control, take a look at:

http://www.python.org/doc/current/lib/os-process.html

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 9 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 14, '03 at 5:21a
activeAug 14, '03 at 1:41p
posts9
users6
websitepython.org

People

Translate

site design / logo © 2022 Grokbase