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
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