Python calling external applications
Gerhard Häring
gerhard.haering at opus-gmbh.net
Thu Dec 19 10:36:39 EST 2002
Steve <stevesusenet at yahoo.com> wrote:
> Is it possible for pyton to
> - send a command to the os, as in starting a non-python program, app, script
> - be tell if that non-pyton script ran to completeion
Yes, both are possible.
Check out os.system for the first task, and the os.execv family of functions
for the second. If you want to read the output or feed input to the other
program you run, you can use the os.popen family of functions.
--
Gerhard Häring
OPUS GmbH München
Tel.: +49 89 - 889 49 7 - 32
http://www.opus-gmbh.net/
More information about the Python-list
mailing list