Calling C programs

Peter Maas fpetermaas at netscape.net
Thu Mar 4 16:25:05 CET 2004


C GIllespie schrieb:
>>print popen("/tmp/hello").read()
> What about if I want to pass an argument?

Via commandline? This way:

print popen("/tmp/hello anArgument").read()

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas at mplusr.de
-------------------------------------------------------------------



More information about the Python-list mailing list