[Tutor] Running A Command

Kalle Svensson kalle@gnupung.net
Thu, 21 Mar 2002 12:48:31 +0100


[fasal.waseem@cis.co.uk]
> I am just new at this python thing, I have written a menu which is
> suppose to call a simple line, so it can run it, what do I do. I am
> using unix platform.

You might want to take a look at the os.popen* and os.system
functions.  http://python.org/doc/current/lib/module-os.html

Peace,
  Kalle
-- 
Kalle Svensson (kalle@gnupung.net) - Laziness, impatience, hubris: Pick two!
English: http://www.gnupung.net/  Svenska: http://www.lysator.liu.se/~kalle/
Stuff: ["http://www.%s.org/" % x for x in "gnu debian python emacs".split()]