running non-python progs from python
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 9 02:43:40 EST 2003
"Spiffy" wrote:
> The 'Learning Python' book talks about using the os.system call, but I
> haven't been able to get this to work.
"it doesn't work" is a really lousy way to describe a problem what did you
do, what happened, and what did you expect would happen instead?
also see:
http://www.catb.org/~esr/faqs/smart-questions.html#intro
> How can I run this other program from a python script and pass the filename
> as a parameter?
import os
filename = "myfile"
os.system("program %s" % filename)
</F>
More information about the Python-list
mailing list