Python论坛  - 讨论区

标题:[python-chinese] How to start program by Python, and excut e the program's command?

2006年09月12日 星期二 11:47

xhsoldier xhsoldier在163.com
星期二 九月 12 11:47:12 HKT 2006

Hello everyone,
 
I want to start a program
the program need to be set the environment variant first using Python, and start it.
then using python to excute the command provided by the program.
 
How to do this?
 
I am using
import os
os.execve(some paras) to do this, and it works, it do starts
but what I want is: store the output in a file while using python i can not see any output
 
thanks
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20060912/52ec7020/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号