os.exec?

Moshe Zadka moshez at zadka.site.co.il
Mon Dec 25 16:05:10 CET 2000


On Mon, 25 Dec 2000, "deadmeat" <root@[127.0.0.1]> wrote:

> How to I execute an external program without replacing the Python
> interpreter? I want control to return to Python when the external program is
> completed. I still want stdio to go to the console not to a pipe if
> possible.

Quite possibly, you'd want os.system, and os.popen.
Or, you might want to work on a lower level with os.fork/os.exec/os.open.

-- 
Moshe Zadka <sig at zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!




More information about the Python-list mailing list