[Tutor] create a wrapper for a C program

Emile van Sebille emile at fenx.com
Wed Apr 7 00:04:39 CEST 2010

On 4/6/2010 8:17 AM anjali nair said...
> Hi,,,
> I am new to python. My doubt is related to wrapping a C program with a
> python script.. I am running Netperf for Network Performance Benchmarking.
> The code is written in C and has an associated Makefile. I thought of
> writing a Python script which should be able to run Netperf with the
> associated arguments on executing it. Do I need to go for SWIG? I tried
> invoking by using subprocess, but that did not work.
> Can somebody help?

Looks like that's a command line tool -- you probably do want to use 
subprocess.  Show us what didn't work...


More information about the Tutor mailing list