在python中,我知道如何使用subprocess.Popen
启动命令process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
我要做的是:1)调用可执行的.exe命令,2)然后在该命令运行之后调用另一个命令。 所以,当我这样做1)这样:
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
我该怎么办?