os.system easy question

Oleg Broytmann phd at phd.pp.ru
Tue Jan 23 06:06:46 EST 2001


On 23 Jan 2001, Huw Lynes wrote:
> os.system("program %s" % filename)
>
> which would be fine if the program exited after running,
> however it doesn't. So the script stops when program is run
> for the first time. So the question is how to kill the
> external program after it has run. Or alternatively how to
> run an external program in such a way that the script will
> not halt.

   But why does not the program finished?

> This is running on linux BTW.

   fork + timeout

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list