On Mon, Dec 14, 2009 at 6:14 PM, W. eWatson <wolftra...@invalid.com> wrote:
> I think Python is capable of executing a compiled C or FORTRAN program, and > maybe even getting some parameters passed back. Does anyone have a example > of how this might be done? I'm running under Win XP Pro. > import subprocess proc = subprocess.Popen(r"C:\mydir\myprog.exe", stdin=subprocess.PIPE, stdout=subprocess.PIPE) out, err = proc.communicate() print "Command returned", out See the subprocess module documentation for details. --S
-- http://mail.python.org/mailman/listinfo/python-list