| H A D | utils.py | 46 def __init__(self, comm, shell=None, fail=True, expect_fail=False, ns=None, argument 69 if shell is None and isinstance(comm, str) and ' ' in comm: 87 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE, 180 def __init__(self, comm, shell=None, fail=None, expect_fail=None, argument 184 shell=shell, fail=fail, expect_fail=expect_fail, 192 if shell and self.terminate: 297 cmd_obj = cmd(cmd_arr, ns=ns, host=host, shell=False, timeout=timeout) 351 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
|