在python中,我知道如何使用subprocess.Popen启动命令
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
我要做的是:1)调用一个可执行的.exe命令,2)然后在该命令运行之后调用另一个命令。 所以当我这样做的时候:
process = subprocess.Popen("C:\Automation\helpFiles\topCmd.exe", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
once that is running I need to run another command i.e state
我该怎么做
目前没有回答
相关问题 更多 >
编程相关推荐