Lines Matching refs:cmd
69 cmd = \
75 cmd = "{}".format(args.script_file)
76 cmd += " {}".format(args.script_options) if args.script_options else ""
77 cmd += " {}".format(args.script_args) if args.script_args else ""
78 return [cmd, env_path]
103 cmd = args.script_file
104 cmd += " {}".format(args.script_options) if args.script_options else ""
105 cmd += " {}".format(args.script_args) if args.script_args else ""
107 subp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
111 [cmd, env_path] = get_command_and_env_path(args)
114 subp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
117 subp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
119 return [cmd, subp]
137 [cmd, subp] = process_open(args)
143 raise RuntimeError('Run [', cmd, '] timeout, timeout_limit = ', timeout_limit, 's')
159 raise RuntimeError("Run [" + cmd + "] failed!")
168 raise RuntimeError("Run [" + cmd + "] failed!")
183 raise RuntimeError("Run [" + cmd + "] failed!")
185 raise RuntimeError("Run [" + cmd + "] with no expect !")
187 print("Run [" + cmd + "] success!")