Re: Executing a DOS program from within Python

2006-03-16 Thread iapain
Use os.system and if you wanna get rid of console window use subprocess as gary said, you could have better options like killing proc if it hang/stuck using win32api (if you are using windows) else process timeout. ret = os.system('sample.exe') # ret will have return code and os.system execute sam

Re: Executing a DOS program from within Python

2006-03-16 Thread Gary Herron
Randy Kreuziger wrote: >This is probably a newbie question but I need a kick start to get going. > >I need to run a DOS (sdetable) program from within a Python program. I'll use >command line switches so I will not need to interact with the program however >it would be nice if I could capture