Lines Matching defs:shell
29 @shell defaults to false, and class will try to split @comm into a list
34 def __init__(self, comm, shell=None, fail=True, ns=None, background=False,
48 # If user doesn't explicitly request shell try to avoid it.
49 if shell is None and isinstance(comm, str) and ' ' in comm:
64 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
118 def __init__(self, comm, shell=None, fail=None, ns=None, host=None,
121 shell=shell, fail=fail, ns=ns, host=host,
127 if shell and self.terminate:
128 print("# Warning: combining shell and terminate is risky!")
214 cmd_obj = cmd(cmd_arr, ns=ns, host=host, shell=False)
250 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout