Lines Matching refs:cmd
73 def cmd(self): member in CompletedProcess
80 return rh.shell.cmd_to_str(self.cmd)
96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
102 super(CalledProcessError, self).__init__(returncode, cmd, stdout)
116 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd)
151 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
192 signum << 8, cmd, msg='Received signal %i' % signum)
258 def run(cmd, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, argument
351 if isinstance(cmd, str):
354 cmd = ['/bin/bash', '-c', cmd]
364 result.args = cmd
368 proc = _Popen(cmd, cwd=cwd, stdin=stdin, stdout=popen_stdout,
374 kill_timeout, cmd, old_sigint)
379 kill_timeout, cmd, old_sigterm)
409 result.returncode, result.cmd, stdout=result.stdout,
417 args=cmd, stderr=estr.encode('utf-8'), returncode=255)
420 result.returncode, result.cmd, stdout=result.stdout,
427 _kill_child_process(proc, int_timeout, kill_timeout, cmd, None,