Run a linux program through python

Ryan srart at
Fri Jun 20 09:59:10 CEST 2003

A couple of ways, you can just use:
or os.execv(path_to_program, (arguments))#this replaces your program you 
or os.spawnv(mode, path_to_other_program, args)# mode will probly be 
P_NOWAIT or P_WAIT, no_wait if it will work fine no matter how many times 
you have it running, wait if you are worried about some kind of collision 
(sound same file may be used more than once, sockets, etc)

On Fri, 20 Jun 2003 09:29:37 +0200, Gunnar Staff 
<gunnaran at> wrote:

> I would like ti run a linux program through a python script. Do enyone 
> know the syntax for running a OS program from python?
> Assume I'll run
> $ convert fromfile tofile
> Gunnar

Using M2, Opera's revolutionary e-mail client:

More information about the Python-list mailing list