@staticmethod<EOL><INDENT>def until_cmd(listcmd, end_expects=None, save2logfile=None, coding = encoding):<DEDENT>
if end_expects and not isinstance(end_expects, p_compat.str):<EOL><INDENT>raise Exception("<STR_LIT>" %end_expects)<EOL><DEDENT>lines = []    <EOL>subp = subprocess.Popen(listcmd,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)<EOL>while subp.poll()==None:<EOL><INDENT>next_line = subp.stdout.readline().decode(coding)<EOL>if next_line:<EOL><INDENT>print(next_line)<EOL>
执行系统命令,并等待执行完
            @param listcmd: 执行的命令，列表格式
            @param end_expects: 命令执行结束，在输出的最后一行，正则搜素期望值，并设置 结果标志
            @param save2logfile:  设置执行过程，保存的日志
            @param coding: 设置输出编码