Executing files

Daley, Mark W mark.w.daley at intel.com
Wed Sep 20 17:35:38 CEST 2000


This question has me running around in circles.  I am running a Python
process that needs to execute a DOS executable and return a value based on
success or failure.  I need to continue the Python process after this has
completed.  It seems to me that I should be able to execute and return, but
the commands I've read so far don't give me much hope.  Here's what I've
found:

	- os.system could execute, but the return is whether or not Python
executed the command, not whether the command completed successfully.

	- os.execv would execute, but it would kill the Python process and
replace it with the executable, while I need to continue the Python process.

	- spawn would work, except I'm not in Windows, I'm in DOS.

If there is any input to this question, I would greatly appreciate it.  I
can provide more information, if only I knew what would help.

- Mark

----------------------------------------------------------------------------
----------------
The opinions expressed are mine, and not necessarily those of my employer.





More information about the Python-list mailing list