posts - 132,comments - 30,trackbacks - 2

cmd = "e:\\dmin\\AdminD.exe online"
        ps = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE)
        ps.stdin.write("file=烂烂烂服务器.role\n") #注意加"\n"
        ps.stdin.write("exit\n")
        data = ps.stdout.read()
        #data = ps.communicate("file=烂烂烂服务器.role"
posted @ 2008-11-14 13:54 凌度 阅读(542) 评论(0) 编辑