Run a linux program through python

John Hunter jdhunter at ace.bsd.uchicago.edu
Fri Jun 20 08:51:47 EDT 2003


>>>>> "Gunnar" == Gunnar Staff <gunnaran at stud.math.ntnu.no> writes:

    Gunnar> I would like ti run a linux program through a python
    Gunnar> script. Do enyone know the syntax for running a OS program
    Gunnar> from python?

If you want control of the process's standard input and output, take a
look at os.popen, os.popen2 and friends.

John Hunter





More information about the Python-list mailing list