【发布时间】:2013-12-01 06:34:13
【问题描述】:
我想从我的 python 脚本中调用多个命令。 我尝试使用 os.system(),但是,当当前目录更改时,我遇到了问题。
示例:
os.system("ls -l")
os.system("<some command>") # This will change the present working directory
os.system("launchMyApp") # Some application invocation I need to do.
现在,第三次调用启动不起作用。
【问题讨论】:
标签: python unix subprocess command