level 6
用os.system(cmd)调用cmd,有办法获得cmd的PID吗,求指导
2012年09月05日 03点09分
1
level 9
我知道的一个方法是用win32的api获取句柄后查PID的~~~
2012年09月10日 04点09分
8
level 7
from su
bp
rocess import *
ssh_proc = Popen(["cmd", "arg1", "arg2"], stdin=PIPE, stdout=PIPE)
print ssh_proc.pid
2012年09月10日 05点09分
9